diff --git a/lua/plugins/lsp-config.lua b/lua/plugins/lsp-config.lua index e59c46d..ea29add 100644 --- a/lua/plugins/lsp-config.lua +++ b/lua/plugins/lsp-config.lua @@ -22,6 +22,7 @@ return { "pyright", "ols", "clangd", + "omnisharp", }, handlers = { function(server_name) @@ -29,6 +30,16 @@ return { capabilities = capabilities, handlers = handlers } + end, + clangd = function() + local lspconfig = require("lspconfig") + lspconfig.clangd.setup({ + capabilities = capabilities, + handlers = handlers, + init_options = { + fallbackFlags = { '--std=c++20' } + }, + }) end } }) diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 24a1034..3a7a548 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -1,22 +1,33 @@ return { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-tree/nvim-web-devicons", - "MunifTanjim/nui.nvim", - }, - config = function() - require("neo-tree").setup({ - event_handlers = { - { - event = "file_opened", - handler = function(file_path) - require("neo-tree.command").execute({ action = "close" }) - end, - }, - }, - }) - vim.keymap.set("n", "", ":Neotree filesystem reveal right toggle", {}) - end, + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim", + }, + config = function() + require("neo-tree").setup({ + event_handlers = { + { + event = "file_opened", + handler = function(file_path) + require("neo-tree.command").execute({ action = "close" }) + end, + }, + }, + filesystem = { + filtered_items = { + visible = false, + show_hidden_count = true, + hide_dotfiles = false, + hide_gitignored = false, + hide_by_name = { + '.git', + }, + }, + }, + }) + vim.keymap.set("n", "", ":Neotree filesystem reveal right toggle", {}) + end, } diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 40e7334..d7bdf27 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" }, + ensure_installed = { "lua", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", "c_sharp", "cpp" }, highlight = { enable = true }, indent = { enable = true }, })