mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(neovim): AWK LSP with required workarounds
- Disable lspsaga -> symbol_in_winbar for awk files
This commit is contained in:
@@ -28,5 +28,5 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
|
||||
-- New command: MasonInstallAll
|
||||
vim.api.nvim_create_user_command("MasonInstallAll", function()
|
||||
vim.cmd("MasonInstall codelldb css-lsp docker-compose-language-service html-lsp json-lsp sqlls")
|
||||
vim.cmd("MasonInstall awk-language-server codelldb css-lsp docker-compose-language-service html-lsp json-lsp sqlls")
|
||||
end, {})
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
-- Step 4: Return a lua table containing required lsp config in it
|
||||
-- NOTE: Only LSPs here, NOT linters or formatter
|
||||
vim.lsp.enable({
|
||||
"awk_ls",
|
||||
"basedpyright",
|
||||
"bashls",
|
||||
"cssls",
|
||||
|
||||
@@ -111,11 +111,13 @@ return {
|
||||
|
||||
{
|
||||
"nvimdev/lspsaga.nvim",
|
||||
event = { "FileType" },
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
local disabled_filetypes = { "awk" }
|
||||
require("lspsaga").setup({
|
||||
ui = {
|
||||
kind = require("config.util").icons.kind_lspsaga,
|
||||
@@ -128,7 +130,10 @@ return {
|
||||
sign = true,
|
||||
priority = 100,
|
||||
},
|
||||
symbol_in_winbar = { enable = true, hide_keyword = true },
|
||||
symbol_in_winbar = {
|
||||
enable = not vim.tbl_contains(disabled_filetypes, vim.bo.filetype),
|
||||
hide_keyword = true,
|
||||
},
|
||||
lightbulb = { virtual_text = false },
|
||||
outline = { auto_preview = false },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user