From 62ee4ff09a4aa8c077d74b9a9fb3792b1561b2bc Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 7 Aug 2023 05:57:24 +0200 Subject: [PATCH] nvim: mason and null_ls set up automatically --- .config/nvim/plugin/nvim-cmp.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/nvim/plugin/nvim-cmp.lua b/.config/nvim/plugin/nvim-cmp.lua index d652ae2..fb5834f 100644 --- a/.config/nvim/plugin/nvim-cmp.lua +++ b/.config/nvim/plugin/nvim-cmp.lua @@ -113,6 +113,7 @@ require("mason").setup() -- williamboman/mason-lspconfig.nvim require("mason-lspconfig").setup({ automatic_setup = true, + ensure_installed = { "pyright", "bashls", "texlab", "nimls", "marksman", "jdtls", "lua_ls" } }) -- jay-babu/mason-null-ls.nvim @@ -138,7 +139,7 @@ local cmp_nvim_lsp = require("cmp_nvim_lsp") -- neovim/nvim-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) navbuddy.attach(client, bufnr) @@ -146,8 +147,8 @@ end local capabilities = cmp_nvim_lsp.default_capabilities() capabilities.textDocument.foldingRange = { - dynamicRegistration = false, - lineFoldingOnly = true + dynamicRegistration = false, + lineFoldingOnly = true } for _, lsp in ipairs(servers) do