summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/plugin/lsp.lua1
-rw-r--r--.config/nvim/lua/hooks.lua16
2 files changed, 8 insertions, 9 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
index f0382d0..cec05bf 100644
--- a/.config/nvim/after/plugin/lsp.lua
+++ b/.config/nvim/after/plugin/lsp.lua
@@ -26,7 +26,6 @@ require('mason').setup({
require('mason-lspconfig').setup({
ensure_installed = {
- 'tsserver',
'eslint',
'rust_analyzer',
'lua_ls',
diff --git a/.config/nvim/lua/hooks.lua b/.config/nvim/lua/hooks.lua
index eaf0687..aeb43a9 100644
--- a/.config/nvim/lua/hooks.lua
+++ b/.config/nvim/lua/hooks.lua
@@ -1,8 +1,8 @@
-vim.api.nvim_create_autocmd({"BufWritePre"}, {
- pattern = "*",
- callback = function(ev)
- save_cursor = vim.fn.getpos(".")
- vim.cmd([[%s/\s\+$//e]])
- vim.fn.setpos(".", save_cursor)
- end,
-})
+-- vim.api.nvim_create_autocmd({"BufWritePre"}, {
+-- pattern = "*",
+-- callback = function(ev)
+-- save_cursor = vim.fn.getpos(".")
+-- vim.cmd([[%s/\s\+$//e]])
+-- vim.fn.setpos(".", save_cursor)
+-- end,
+-- })