all repos — dotfiles @ e494bc9c5aaf7f95cd114dc323d53ea2ab0287c3

linux dotfiles

nvim(lsp): remove terraformls for now
Prithu Goswami pg@prithu.dev
Thu, 19 Jan 2023 20:41:04 +0530
commit

e494bc9c5aaf7f95cd114dc323d53ea2ab0287c3

parent

29806231a4ba3089ed92adf96ee436eb28b6141b

1 files changed, 12 insertions(+), 6 deletions(-)

jump to
M config/nvim/lua/lsp/init.luaconfig/nvim/lua/lsp/init.lua

@@ -45,7 +45,7 @@ local status_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp")

if not status_ok then return end -capabilities = cmp_nvim_lsp.update_capabilities(capabilities) +capabilities = cmp_nvim_lsp.default_capabilities(capabilities) local opts = { noremap=true, silent=true } vim.keymap.set('n', 'gl', vim.diagnostic.open_float, opts)

@@ -103,6 +103,12 @@ lspconfig.tsserver.setup{

capabilities = capabilities, on_attach = on_attach, } + +-- lspconfig.terraformls.setup{ +-- capabilities = capabilities, +-- on_attach = on_attach, +-- } + -- local null_ls = require("null-ls")

@@ -115,11 +121,11 @@ null_ls.builtins.formatting.prettierd,

-- python null_ls.builtins.formatting.black.with({extra_args={"--fast"}}), null_ls.builtins.formatting.isort.with({extra_args={"--profile", "black"}}), - -- null_ls.builtins.diagnostics.flake8.with({ - -- condition = function(utils) - -- return utils.root_has_file({".flake8"}) - -- end, - -- }), + null_ls.builtins.diagnostics.flake8.with({ + condition = function(utils) + return utils.root_has_file({".flake8"}) + end, + }), -- null_ls.builtins.diagnostics.mypy.with({ -- condition = function(utils) -- return utils.root_has_file({"pyproject.toml"})