From 336d621a5bd8b7fbb38cdb08d7ee8e52536235f6 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Tue, 2 Aug 2022 18:08:42 -0700 Subject: [PATCH] small updates --- lua/user/cmp.lua | 1 + lua/user/lsp/mason.lua | 5 +++++ lua/user/lsp/nullls.lua | 1 - lua/user/options.lua | 2 +- lua/user/plugins.lua | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua index 37b6cac..8957769 100644 --- a/lua/user/cmp.lua +++ b/lua/user/cmp.lua @@ -28,6 +28,7 @@ end npm.setup({}) cmp.setup({ + completion = { completeopt = "menu,menuone,noinsert", keyword_length = 1 }, snippet = { expand = function(args) luasnip.lsp_expand(args.body) diff --git a/lua/user/lsp/mason.lua b/lua/user/lsp/mason.lua index a37a7d3..d645097 100644 --- a/lua/user/lsp/mason.lua +++ b/lua/user/lsp/mason.lua @@ -10,6 +10,11 @@ require("mason-lspconfig").setup({ automatic_installation = true, }) +require("mason-tool-installer").setup({ + auto_update = false, + run_on_start = true, +}) + lspconfig.util.default_config = vim.tbl_extend("force", lspconfig.util.default_config, { on_attach = require("user.lsp.handlers").on_attach, capabilities = require("user.lsp.handlers").capabilities, diff --git a/lua/user/lsp/nullls.lua b/lua/user/lsp/nullls.lua index 5283848..2df93e3 100644 --- a/lua/user/lsp/nullls.lua +++ b/lua/user/lsp/nullls.lua @@ -18,6 +18,5 @@ null_ls.setup({ formatting.markdownlint, diagnostics.yamllint, formatting.rustfmt, - diagnostics.editorconfig_checker, }, }) diff --git a/lua/user/options.lua b/lua/user/options.lua index 971bb97..0a1fbd6 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -1,7 +1,7 @@ vim.opt.backup = false vim.opt.clipboard = "unnamedplus" vim.opt.cmdheight = 2 -vim.opt.completeopt = { "menuone", "noselect" } +vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.conceallevel = 0 vim.opt.fileencoding = "utf-8" vim.opt.hlsearch = true diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 5031c97..56da536 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -81,6 +81,7 @@ return packer.startup(function(use) use("neovim/nvim-lspconfig") use("williamboman/mason.nvim") use("williamboman/mason-lspconfig.nvim") + use("WhoIsSethDaniel/mason-tool-installer.nvim") use("jose-elias-alvarez/null-ls.nvim") use("b0o/SchemaStore.nvim") use("ray-x/lsp_signature.nvim")