summaryrefslogtreecommitdiff
path: root/lua/niliara
diff options
context:
space:
mode:
authornil <niljo@airmail.cc>2025-01-14 20:14:37 +0100
committernil <niljo@airmail.cc>2025-01-14 20:14:37 +0100
commit2f483e68303c33d6aa3723d887b09998c3f20ee4 (patch)
tree29ec62ba1cf3f6b10cffa2efd8f6da41f5db5603 /lua/niliara
Diffstat (limited to 'lua/niliara')
-rw-r--r--lua/niliara/buffers.lua7
-rw-r--r--lua/niliara/folding.lua10
-rwxr-xr-xlua/niliara/lsp.lua17
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({})