mirror of
https://git.aramjonghu.nl/AramJonghu/nvim.git
synced 2026-03-22 01:39:54 +01:00
updated lspconfig
This commit is contained in:
+11
-26
@@ -3,13 +3,8 @@ local mason_lspconfig = require("mason-lspconfig")
|
||||
local lspconfig = require("lspconfig")
|
||||
local cmp_cap = require("config.cmp").capabilities
|
||||
local newlspconfig = vim.lsp.config
|
||||
|
||||
local lspenable = vim.lsp.enable
|
||||
|
||||
newlspconfig("qmlls", {
|
||||
cmd = { "qmlls" },
|
||||
})
|
||||
|
||||
lspenable("")
|
||||
|
||||
mason.setup()
|
||||
@@ -17,7 +12,7 @@ mason.setup()
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
"rust_analyzer", "jdtls", "yamlls", "ts_ls", "tailwindcss", "html",
|
||||
"cssls"
|
||||
"cssls", "bashls", "postgres_lsp", "pyright", "vimls"
|
||||
},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
@@ -42,26 +37,16 @@ mason_lspconfig.setup({
|
||||
}
|
||||
})
|
||||
|
||||
require'lspconfig'.lua_ls.setup({
|
||||
capabilities = cmp_cap,
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {version = "LuaJIT"},
|
||||
diagnostics = {
|
||||
globals = {
|
||||
"vim", "bit", "it", "describe", "before_each", "after_each"
|
||||
}
|
||||
},
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = {vim.env.VIMRUNTIME}
|
||||
},
|
||||
telemetry = {enable = false}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
require'lspconfig'.nil_ls.setup{}
|
||||
vim.lsp.enable('lua_ls')
|
||||
vim.lsp.enable('qmlls')
|
||||
vim.lsp.enable('nil_ls')
|
||||
vim.lsp.enable('arduino-langauge-server')
|
||||
vim.lsp.enable('cmake')
|
||||
vim.lsp.enable('clangd')
|
||||
vim.lsp.enable('hyprls')
|
||||
vim.lsp.enable('nginx_language_server')
|
||||
vim.lsp.enable('docker_compose_language_service')
|
||||
vim.lsp.enable('dockerls')
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = true,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
require'nvim-treesitter.config'.setup {
|
||||
ensure_installed = "all",
|
||||
sync_install = true,
|
||||
auto_install = true,
|
||||
highlight = {enable = true, additional_vim_regex_highlighting = false},
|
||||
indent = {enable = true, disable = {}},
|
||||
ensure_installed = {"toml", "json", "yaml", "css", "html", "lua"},
|
||||
autotag = {enable = true}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
{
|
||||
"vimpostor/vim-tpipeline",
|
||||
-- config = function () require("tpipeline") end
|
||||
}, {
|
||||
"aznhe21/actions-preview.nvim",
|
||||
config = function() require("actions-preview") end
|
||||
|
||||
Reference in New Issue
Block a user