diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 7cced73..6dbc831 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -29,7 +29,7 @@ end) -- (Optional) Configure lua language server for neovim require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls()) -lsp.skip_server_setup({'ltex'}) +-- lsp.skip_server_setup({'ltex'}) lsp.setup() diff --git a/.config/nvim/lua/sheldonmlee/packer.lua b/.config/nvim/lua/sheldonmlee/packer.lua index 7533644..6bd05d1 100644 --- a/.config/nvim/lua/sheldonmlee/packer.lua +++ b/.config/nvim/lua/sheldonmlee/packer.lua @@ -44,6 +44,8 @@ return require('packer').startup(function(use) } } + use 'sbdchd/neoformat' + use 'lervag/vimtex' use 'nvim-lua/plenary.nvim' diff --git a/.config/nvim/lua/sheldonmlee/set.lua b/.config/nvim/lua/sheldonmlee/set.lua index ea7989c..e65fadd 100644 --- a/.config/nvim/lua/sheldonmlee/set.lua +++ b/.config/nvim/lua/sheldonmlee/set.lua @@ -22,8 +22,14 @@ vim.opt.scrolloff = 8 -- 'no' disables signcolumn vim.opt.signcolumn = 'no' +--vim.api.nvim_create_autocmd('BufWritePre', { +-- pattern = { '*.tsx', '*.ts', '*.jsx', '*.js' }, +-- command = 'silent! EslintFixAll', +-- group = vim.api.nvim_create_augroup('Eslint', {}), +--}) + vim.api.nvim_create_autocmd('BufWritePre', { pattern = { '*.tsx', '*.ts', '*.jsx', '*.js' }, - command = 'silent! EslintFixAll', + command = 'silent! Neoformat', group = vim.api.nvim_create_augroup('Eslint', {}), })