Archived
0
0
Fork 0

small updates

This commit is contained in:
Daryl Ronningen 2022-08-02 18:08:42 -07:00
parent 8b5ec5d4f4
commit 336d621a5b
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
5 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -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,

View file

@ -18,6 +18,5 @@ null_ls.setup({
formatting.markdownlint,
diagnostics.yamllint,
formatting.rustfmt,
diagnostics.editorconfig_checker,
},
})

View file

@ -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

View file

@ -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")