diff options
Diffstat (limited to 'lua/niliara')
-rw-r--r-- | lua/niliara/buffers.lua | 7 | ||||
-rw-r--r-- | lua/niliara/folding.lua | 10 | ||||
-rwxr-xr-x | lua/niliara/lsp.lua | 17 |
3 files changed, 34 insertions, 0 deletions
diff --git a/lua/niliara/buffers.lua b/lua/niliara/buffers.lua new file mode 100644 index 0000000..2ede660 --- /dev/null +++ b/lua/niliara/buffers.lua @@ -0,0 +1,7 @@ +-- map gn :bnext<cr> +-- map gp :bprevious<cr> +-- map gd :bdelete<cr> + +vim.keymap.set("n", "gn", vim.cmd.bnext) +vim.keymap.set("n", "gp", vim.cmd.bprevious) +vim.keymap.set("n", "gd", vim.cmd.bdelete) diff --git a/lua/niliara/folding.lua b/lua/niliara/folding.lua new file mode 100644 index 0000000..552ae29 --- /dev/null +++ b/lua/niliara/folding.lua @@ -0,0 +1,10 @@ +vim.api.nvim_create_autocmd({"BufWinLeave"}, { + pattern = {"*.*"}, + desc = "save view (folds), when closing file", + command = "mkview", +}) +vim.api.nvim_create_autocmd({"BufWinEnter"}, { + pattern = {"*.*"}, + desc = "load view (folds), when opening file", + command = "silent! loadview" +}) diff --git a/lua/niliara/lsp.lua b/lua/niliara/lsp.lua new file mode 100755 index 0000000..67597ac --- /dev/null +++ b/lua/niliara/lsp.lua @@ -0,0 +1,17 @@ +local lsp_zero = require('lsp-zero') + +lsp_zero.on_attach(function(client, bufnr) + lsp_zero.default_keymaps({buffer = bufnr}) +end) + +local lspconfig = require('lspconfig') + +lspconfig.lua_ls.setup({}) +lspconfig.perlnavigator.setup({}) +lspconfig.pylsp.setup({}) +lspconfig.sqls.setup({}) +lspconfig.csharp_ls.setup({}) +lspconfig.ts_ls.setup({}) +lspconfig.intelephense.setup({}) +lspconfig.rust_analyzer.setup({}) +lspconfig.texlab.setup({}) |