summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-08-27 21:17:53 +0530
committersinanmohd <sinan@firemail.cc>2023-08-27 22:09:18 +0530
commitb3b52e833c222eebd1727c3ce30aa8369c4dfdde (patch)
treef376f406adb9ec7eca6267c45a8bbb2d14050c23 /.config/nvim
parent376703922920c88b0f94c08591faa11065ee04b1 (diff)
config/nvim: clean up
Diffstat (limited to '.config/nvim')
-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()