diff --git a/init.lua b/init.lua index aeca6d28..b0f9de18 100644 --- a/init.lua +++ b/init.lua @@ -288,10 +288,10 @@ vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { de -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim' }, + ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'help', 'vim', 'ruby' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) - auto_install = false, + auto_install = true, highlight = { enable = true }, indent = { enable = true, disable = { 'python' } }, @@ -408,7 +408,7 @@ end -- the `settings` field of the server config. You must look up that documentation yourself. local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, -- pyright = {}, -- rust_analyzer = {}, -- tsserver = {}, @@ -474,7 +474,7 @@ cmp.setup { elseif luasnip.expand_or_jumpable() then luasnip.expand_or_jump() else - fallback() + fallback() end end, { 'i', 's' }), [''] = cmp.mapping(function(fallback) diff --git a/lua/custom/plugins/filtree.lua b/lua/custom/plugins/filtree.lua new file mode 100644 index 00000000..237f7505 --- /dev/null +++ b/lua/custom/plugins/filtree.lua @@ -0,0 +1,15 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + version = "*", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + }, + config = function () + -- Unless you are still migrating, remove the deprecated commands from v1.x + vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) + + require('neo-tree').setup {} + end, +}