Skip to content

Commit

Permalink
Update .config/nvim/init.lua
Browse files Browse the repository at this point in the history
Update .config/nvim/lua/plugins/nvim-lspconfig.lua
  • Loading branch information
Hyuga-Tsukui committed Oct 28, 2024
1 parent 590affe commit 8421233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion dot_config/nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require("core.options")
if not vim.g.vscode then
require("core.options")
require("core.keymaps")
Expand Down
8 changes: 6 additions & 2 deletions dot_config/nvim/lua/plugins/nvim-lspconfig.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"neovim/nvim-lspconfig",
event = {"BufReadPre", "BufNewFile"},
event = { "BufReadPre", "BufNewFile" },
config = function()
local status_ok, lspconfig = pcall(require, "lspconfig")
if not status_ok then
Expand Down Expand Up @@ -41,7 +41,11 @@ return {
end

if lspconfig.terraformls then
lspconfig.terraformls.setup({})
lspconfig.terraformls.setup({
on_attach = function(client, _)
client.server_capabilities.semanticTokensProvider = nil
end,
})
end

if lspconfig.typos_lsp then
Expand Down

0 comments on commit 8421233

Please sign in to comment.