small updates
This commit is contained in:
parent
8b5ec5d4f4
commit
336d621a5b
5 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -18,6 +18,5 @@ null_ls.setup({
|
|||
formatting.markdownlint,
|
||||
diagnostics.yamllint,
|
||||
formatting.rustfmt,
|
||||
diagnostics.editorconfig_checker,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Reference in a new issue