Rewrite the remaining neovim config in lua

This commit is contained in:
2025-01-10 18:56:19 +01:00
parent 889af814fc
commit 96b0313c36
6 changed files with 256 additions and 237 deletions

View 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
}