1
0
Fork 0

lsp changes

This commit is contained in:
Luca Bilke 2022-09-30 13:09:49 +02:00
parent 1c7743739e
commit 6340bb5c06
1 changed files with 12 additions and 7 deletions

View File

@ -45,17 +45,21 @@ lvim.builtin.cmp.sources = {
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{ command = "black", filetypes = { "python" } },
}
local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
{
command = "shellcheck",
args = { "--severity", "warning" },
command = "black",
filetypes = { "python" }
},
}
-- local linters = require "lvim.lsp.null-ls.linters"
-- linters.setup {
-- {
-- command = "shellcheck",
-- args = { "--severity", "warning" },
-- filetypes = { "bash" }
-- },
-- }
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
vim.api.nvim_create_autocmd({ "BufEnter", "FocusGained", "InsertLeave", "WinEnter" }, {
pattern = "*",
@ -557,5 +561,6 @@ lvim.builtin.which_key.mappings = {
i = { ":TSConfigInfo<cr>", "Info" },
},
w = { name = "VimWiki" },
W = { name = "Open Term" },
z = { name = "Folding" }
}