Rewrite the remaining neovim config in lua
This commit is contained in:
77
.config/nvim/lua/lspserver.lua
Normal file
77
.config/nvim/lua/lspserver.lua
Normal file
@ -0,0 +1,77 @@
|
||||
require'lsphelp'
|
||||
local nvim_lsp = require('lspconfig')
|
||||
|
||||
nvim_lsp['hls'].setup {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities,
|
||||
flags = {
|
||||
debounce_text_changes = 150,
|
||||
},
|
||||
settings = {
|
||||
haskell = {
|
||||
plugin = {
|
||||
stan = {
|
||||
globalOn = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nvim_lsp['intelephense'].setup {
|
||||
on_attach = default_on_attach,
|
||||
flags = {
|
||||
debounce_text_changes = 150
|
||||
},
|
||||
init_options = {
|
||||
licenceKey = os.getenv('HOME') .. '/Documents/Schluessel/intelephense.key',
|
||||
storagePath = '/tmp/intelephense'
|
||||
},
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
intelephense = {
|
||||
environment = {
|
||||
phpVersion = '8.2.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nvim_lsp['clangd'].setup {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
require("flutter-tools").setup {
|
||||
outline = {
|
||||
open_cmd = "Vista"
|
||||
},
|
||||
lsp = {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities
|
||||
}
|
||||
}
|
||||
nvim_lsp['twiggy_language_server'].setup {
|
||||
on_attach = default_on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
twiggy = {
|
||||
framework = 'symfony',
|
||||
phpExecutable = '/usr/bin/php',
|
||||
symfonyConsolePath = 'bin/console',
|
||||
diagnostics = {
|
||||
twigCsFixer = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
vim.g.vim_vue_plugin_config = {
|
||||
syntax = {
|
||||
template = {'html'},
|
||||
script = {'javascript'},
|
||||
style = {'css'},
|
||||
},
|
||||
full_syntax = {},
|
||||
initial_indent = {},
|
||||
attribute = 0,
|
||||
keyword = 0,
|
||||
foldexpr = 0,
|
||||
debug = 0
|
||||
}
|
Reference in New Issue
Block a user