diff --git a/init.lua b/init.lua index 9f992517..4c8a9b39 100644 --- a/init.lua +++ b/init.lua @@ -135,7 +135,6 @@ vim.o.updatetime = 250 -- Decrease mapped sequence wait time vim.o.timeoutlen = 300 - -- Configure how new splits should be opened vim.o.splitright = true vim.o.splitbelow = true @@ -171,7 +170,6 @@ vim.o.confirm = true -- Clear highlights on search when pressing in normal mode -- See `:help hlsearch` vim.keymap.set('n', '', 'nohlsearch') - -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) @@ -204,6 +202,8 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- vim.keymap.set("n", "", "J", { desc = "Move window to the lower" }) -- vim.keymap.set("n", "", "K", { desc = "Move window to the upper" }) +vim.keymap.set('n', '', 'Neotree toggle', { desc = 'Toggle Neotree' }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -480,7 +480,21 @@ require('lazy').setup({ { 'pmizio/typescript-tools.nvim', dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' }, - opts = {}, + config = function() + require('typescript-tools').setup { + settings = { + tsserver_file_preferences = { + includeInlayParameterNameHints = 'all', + includeCompletionsForModuleExports = true, + quotePreference = 'auto', + }, + tsserver_format_options = { + allowIncompleteCompletions = false, + allowRenameOfImportPath = true, + }, + }, + } + end, }, { @@ -680,7 +694,7 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - gopls = {}, + -- gopls = {}, -- pyright = {}, rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -754,6 +768,14 @@ require('lazy').setup({ }, config = function() require('codeium').setup { + workspace_root = { + use_lsp = true, + find_root = nil, + paths = { + '.git', + 'package.json', + }, + }, virtual_text = { enabled = true, }, @@ -979,7 +1001,34 @@ require('lazy').setup({ -- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects }, - + { + '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 { + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + hide_gitignored = false, + }, + }, + } + end, + }, + -- ~/.config/nvim/lua/plugins/vim-visual-multi.lua + { + 'mg979/vim-visual-multi', + branch = 'master', + init = function() + -- Optional: customize keybindings + end, + }, -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the -- init.lua. If you want these files, they are in the repository, so you can just download them and -- place them in the correct locations. @@ -993,10 +1042,10 @@ require('lazy').setup({ require 'kickstart.plugins.indent_line', require 'kickstart.plugins.lint', require 'kickstart.plugins.autopairs', - require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps - -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` + -- The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.