Skip to content

Commit

Permalink
chore(nvim): adjust config for lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
miszo committed Oct 15, 2024
1 parent e3c732a commit 3fd9c6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
5 changes: 5 additions & 0 deletions home/dot_config/exact_nvim/exact_lua/exact_config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-- vim.cmd([[ set nofoldenable]]) -- Disable folding at startup
vim.opt.foldenable = true

-- LSP Server to use for Ruby.
-- Set to "solargraph" to use solargraph instead of ruby_lsp.
vim.g.lazyvim_ruby_lsp = 'ruby_lsp'
vim.g.lazyvim_ruby_formatter = 'rubocop'

-- LSP Server to use for PHP.
-- Set to "intelephense" to use intelephense instead of phpactor.
vim.g.lazyvim_php_lsp = 'intelephense'
14 changes: 0 additions & 14 deletions home/dot_config/exact_nvim/exact_lua/exact_plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,9 @@ return {
mason = false,
cmd = { vim.fn.expand('~/.asdf/shims/ruby-lsp') },
},
intelephense = {
enable = true,
},
phpactor = {
enable = false,
},
eslint = {
root_dir = get_root_dir,
},
--- @deprecated -- tsserver renamed to ts_ls but not yet released, so keep this for now
--- the proper approach is to check the nvim-lspconfig release version when it's released to determine the server name dynamically
tsserver = {
enabled = false,
},
ts_ls = {
enabled = false,
},
vtsls = {
root_dir = get_root_dir,
settings = {
Expand Down

0 comments on commit 3fd9c6e

Please sign in to comment.