summaryrefslogtreecommitdiff
path: root/.config/nvim/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/init.lua')
-rw-r--r--.config/nvim/init.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 4285f23..9373455 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -13,7 +13,7 @@ vim.o.termguicolors = true
vim.wo.signcolumn = "yes"
-- [[ lib ]]
-mapnl = function(lhs, rhs, opts)
+local mapnl = function(lhs, rhs, opts)
vim.keymap.set("n", "<leader>" .. lhs, rhs, opts)
end
@@ -48,7 +48,7 @@ vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
"tpope/vim-fugitive",
"tpope/vim-sleuth",
- { "numToStr/Comment.nvim", opts = {} },
+ { "numToStr/Comment.nvim", opts = {} },
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{
@@ -94,10 +94,10 @@ require("lazy").setup({
"VonHeikemen/lsp-zero.nvim",
branch = "v2.x",
dependencies = {
- {"neovim/nvim-lspconfig"},
- {"hrsh7th/nvim-cmp"},
- {"hrsh7th/cmp-nvim-lsp"},
- {"L3MON4D3/LuaSnip"},
+ { "neovim/nvim-lspconfig" },
+ { "hrsh7th/nvim-cmp" },
+ { "hrsh7th/cmp-nvim-lsp" },
+ { "L3MON4D3/LuaSnip" },
},
},
}, { lockfile = lazylock })
@@ -127,14 +127,14 @@ require("nvim-treesitter.configs").setup {
}
-- [[ lsp setup ]]
-local lsp = require("lsp-zero").preset{}
+local lsp = require("lsp-zero").preset {}
lsp.on_attach(function(_, bufnr)
- lsp.default_keymaps({buffer = bufnr})
+ lsp.default_keymaps { buffer = bufnr }
end)
-require("lspconfig").ccls.setup{}
-require("lspconfig").bashls.setup{}
-require("lspconfig").nil_ls.setup{}
+require("lspconfig").ccls.setup {}
+require("lspconfig").bashls.setup {}
+require("lspconfig").nil_ls.setup {}
require("lspconfig").lua_ls.setup(lsp.nvim_lua_ls())
lsp.setup()