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