Switch to vim.lsp.config and vim.lsp.enable
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
require'lsphelp'
|
||||
local nvim_lsp = require('lspconfig')
|
||||
|
||||
nvim_lsp['hls'].setup {
|
||||
vim.lsp.config('hls', {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities,
|
||||
flags = {
|
||||
@@ -16,8 +15,10 @@ nvim_lsp['hls'].setup {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nvim_lsp['intelephense'].setup {
|
||||
})
|
||||
vim.lsp.enable('hls')
|
||||
|
||||
vim.lsp.config('intelephense', {
|
||||
on_attach = default_on_attach,
|
||||
flags = {
|
||||
debounce_text_changes = 150
|
||||
@@ -34,12 +35,16 @@ nvim_lsp['intelephense'].setup {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nvim_lsp['clangd'].setup {
|
||||
})
|
||||
vim.lsp.enable('intelephense')
|
||||
|
||||
vim.lsp.config('clangd', {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
require("flutter-tools").setup {
|
||||
})
|
||||
vim.lsp.enable('clangd')
|
||||
|
||||
require('flutter-tools').setup {
|
||||
outline = {
|
||||
open_cmd = "Vista"
|
||||
},
|
||||
@@ -48,20 +53,23 @@ require("flutter-tools").setup {
|
||||
capabilities = capabilities
|
||||
}
|
||||
}
|
||||
nvim_lsp['twiggy_language_server'].setup {
|
||||
|
||||
vim.lsp.config('twiggy_language_server', {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
twiggy = {
|
||||
framework = 'symfony',
|
||||
phpExecutable = '/usr/bin/php',
|
||||
phpExecutable = 'php',
|
||||
symfonyConsolePath = 'bin/console',
|
||||
diagnostics = {
|
||||
twigCsFixer = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
vim.lsp.enable('twiggy_language_server')
|
||||
|
||||
vim.g.vim_vue_plugin_config = {
|
||||
syntax = {
|
||||
template = {'html'},
|
||||
|
||||
Reference in New Issue
Block a user