diff --git a/nvim/ftplugin/asm.lua b/nvim/ftplugin/asm.lua index 3864aa0..8ea7de5 100644 --- a/nvim/ftplugin/asm.lua +++ b/nvim/ftplugin/asm.lua @@ -16,6 +16,7 @@ vim.lsp.start { cmd = { 'asm-lsp' }, root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]), capabilities = require('user.lsp').make_client_capabilities(), + filetypes = { "asm" }, on_attach = function(client, bufnr) require("nvim-navic").attach(client, bufnr) require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr) diff --git a/nvim/ftplugin/c.lua b/nvim/ftplugin/c.lua index 934bfe5..4f13718 100644 --- a/nvim/ftplugin/c.lua +++ b/nvim/ftplugin/c.lua @@ -16,6 +16,7 @@ vim.lsp.start { cmd = { 'clangd' }, root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]), capabilities = require('user.lsp').make_client_capabilities(), + filetypes = { "c" }, on_attach = function(client, bufnr) require("nvim-navic").attach(client, bufnr) require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr) diff --git a/nvim/ftplugin/lua.lua b/nvim/ftplugin/lua.lua index 54917a7..3da36f8 100644 --- a/nvim/ftplugin/lua.lua +++ b/nvim/ftplugin/lua.lua @@ -25,6 +25,7 @@ vim.lsp.start { cmd = { lua_ls_cmd }, root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]), capabilities = require('user.lsp').make_client_capabilities(), + filetypes = { "lua" }, on_attach = function(client, bufnr) require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr) require("nvim-navic").attach(client, bufnr) diff --git a/nvim/ftplugin/nix.lua b/nvim/ftplugin/nix.lua index cc8d728..9a84daa 100644 --- a/nvim/ftplugin/nix.lua +++ b/nvim/ftplugin/nix.lua @@ -15,6 +15,7 @@ vim.lsp.start { cmd = { 'nil' }, root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]), capabilities = require('user.lsp').make_client_capabilities(), + filetypes = { "nix" }, on_attach = function(client, bufnr) require("nvim-navic").attach(client, bufnr) require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr) diff --git a/nvim/ftplugin/sh.lua b/nvim/ftplugin/sh.lua index 20541b2..fbcfc95 100644 --- a/nvim/ftplugin/sh.lua +++ b/nvim/ftplugin/sh.lua @@ -14,6 +14,7 @@ vim.lsp.start { cmd = { 'bash-language-server', 'start' }, root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]), -- capabilities = require('user.lsp').make_client_capabilities(), + filetypes = { "sh" }, single_file_support = true, on_attach = function(client, bufnr) require("nvim-navic").attach(client, bufnr)