Initial commit
This commit is contained in:
13
.config/nvim/lua/keybinds.lua
Normal file
13
.config/nvim/lua/keybinds.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- filetype-specific keybinds can be found in the ftplugin folder, requires 'filetype plugin on'
|
||||
function map(mode, lhs, rhs, opts)
|
||||
local options = { noremap = true }
|
||||
if opts then
|
||||
options = vim.tbl_extend("force", options, opts)
|
||||
end
|
||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
end
|
||||
|
||||
map("n", "<Enter>", "i<Enter><Esc>k$")
|
||||
-- map("n", "<S-Enter>", "d$O<Esc>p^")
|
||||
map("n", "<Space>", "i<Space><Esc>")
|
||||
|
||||
32
.config/nvim/lua/plugins.lua
Normal file
32
.config/nvim/lua/plugins.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
-- INSTALL PACKER PLUGINS https://github.com/wbthomason/packer.nvim#bootstrapping
|
||||
local vim = vim
|
||||
local execute = vim.api.nvim_command
|
||||
local fn = vim.fn
|
||||
local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
|
||||
execute 'packadd packer.nvim'
|
||||
end
|
||||
vim.cmd('packadd packer.nvim')
|
||||
local packer = require'packer'
|
||||
local util = require'packer.util'
|
||||
packer.init({
|
||||
package_root = util.join_paths(vim.fn.stdpath('data'), 'site', 'pack')
|
||||
})
|
||||
--- startup and add configure plugins
|
||||
packer.startup(function()
|
||||
local use = use
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'nvim-treesitter/nvim-treesitter'
|
||||
end
|
||||
)
|
||||
--[[ PLUGIN CONFIGURATION
|
||||
local configs = require'nvim-treesitter.configs'
|
||||
configs.setup {
|
||||
ensure_installed = "maintained",
|
||||
highlight = {
|
||||
enable = true,
|
||||
}
|
||||
}
|
||||
]]--
|
||||
|
||||
Reference in New Issue
Block a user