diff --git a/lua/plugins/lsp-config.lua b/lua/plugins/lsp-config.lua index ea29add..3ca7046 100644 --- a/lua/plugins/lsp-config.lua +++ b/lua/plugins/lsp-config.lua @@ -40,10 +40,19 @@ return { fallbackFlags = { '--std=c++20' } }, }) - end + end, } }) + local lspconfig = require("lspconfig") + lspconfig.gleam.setup({ + capabilities = capabilities, + handlers = handlers, + cmd = { "gleam", "lsp" }, + root_dir = lspconfig.util.root_pattern("gleam.toml", ".git"), + filetypes = { "gleam" }, + }) + vim.keymap.set("n", "K", vim.lsp.buf.hover, {}) vim.keymap.set("n", "gd", vim.lsp.buf.definition, {}) vim.keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, {}) diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 3a7a548..717e334 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -21,9 +21,10 @@ return { visible = false, show_hidden_count = true, hide_dotfiles = false, - hide_gitignored = false, + hide_gitignored = true, hide_by_name = { '.git', + 'bin', }, }, }, diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index d7bdf27..31f0e46 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -4,7 +4,7 @@ return { config = function() local config = require("nvim-treesitter.configs") config.setup({ - ensure_installed = { "lua", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", "c_sharp", "cpp" }, + ensure_installed = { "lua", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", "c_sharp", "cpp", "gleam" }, highlight = { enable = true }, indent = { enable = true }, })