mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-28 22:17:45 +01:00
nvim: mason and null_ls set up automatically
This commit is contained in:
parent
f8f626cd67
commit
62ee4ff09a
@ -113,6 +113,7 @@ require("mason").setup()
|
|||||||
-- williamboman/mason-lspconfig.nvim
|
-- williamboman/mason-lspconfig.nvim
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
automatic_setup = true,
|
automatic_setup = true,
|
||||||
|
ensure_installed = { "pyright", "bashls", "texlab", "nimls", "marksman", "jdtls", "lua_ls" }
|
||||||
})
|
})
|
||||||
|
|
||||||
-- jay-babu/mason-null-ls.nvim
|
-- jay-babu/mason-null-ls.nvim
|
||||||
@ -138,7 +139,7 @@ local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
|||||||
-- neovim/nvim-lspconfig
|
-- neovim/nvim-lspconfig
|
||||||
local nvim_lsp = require('lspconfig')
|
local nvim_lsp = require('lspconfig')
|
||||||
|
|
||||||
local servers = { "pyright", "bashls", "texlab", "ccls", "nimls", "marksman" }
|
local servers = { "pyright", "bashls", "texlab", "nimls", "marksman" }
|
||||||
|
|
||||||
local attach_func = function(client, bufnr)
|
local attach_func = function(client, bufnr)
|
||||||
navbuddy.attach(client, bufnr)
|
navbuddy.attach(client, bufnr)
|
||||||
@ -146,8 +147,8 @@ end
|
|||||||
|
|
||||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||||
capabilities.textDocument.foldingRange = {
|
capabilities.textDocument.foldingRange = {
|
||||||
dynamicRegistration = false,
|
dynamicRegistration = false,
|
||||||
lineFoldingOnly = true
|
lineFoldingOnly = true
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user