diff options
| -rw-r--r-- | lua/pml68/configs/settings/lua_ls.lua | 21 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 8 |
2 files changed, 10 insertions, 19 deletions
diff --git a/lua/pml68/configs/settings/lua_ls.lua b/lua/pml68/configs/settings/lua_ls.lua index de4124c..943eaec 100644 --- a/lua/pml68/configs/settings/lua_ls.lua +++ b/lua/pml68/configs/settings/lua_ls.lua @@ -2,18 +2,17 @@ return { settings = { Lua = { diagnostics = { - globals = { "vim " }, - }, - workspace = { - library = { - [vim.fn.expand "$VIMRUNTIME/lua"] = true, - [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, - [vim.fn.stdpath "data" .. "/lazy/ui/nvchad_types"] = true, - [vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy"] = true, + globals = { "vim " }, }, - maxPreload = 100000, - preloadFileSize = 10000, - } + workspace = { + library = { + [vim.fn.expand "$VIMRUNTIME/lua"] = true, + [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, + [vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy"] = true, + }, + maxPreload = 100000, + preloadFileSize = 10000, + } } } } diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index 3400a67..8413b39 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -7,14 +7,6 @@ vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<CR>") vim.keymap.set("n", "<leader>n", "<cmd> set nu! <CR>") vim.keymap.set("n", "<leader>rn", "<cmd> set rnu! <CR>") --- keyboard problems (temporary) -vim.keymap.set("n", "<leader>s", function() - local pos = vim.api.nvim_win_get_cursor(0)[2] - local line = vim.api.nvim_get_current_line() - local nline = line:sub(0, pos) .. "<" .. line:sub(pos + 1) - vim.api.nvim_set_current_line(nline) -end) - -- switch between windows vim.keymap.set("n", "<C-h>", "<C-w>h") vim.keymap.set("n", "<C-l>", "<C-w>l") |
