diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-14 19:48:38 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-09-14 20:05:12 +0200 |
commit | 7dcd592eae886dc8edde2dc65d6e6323201a2aaf (patch) | |
tree | 8c792984bd55d710dd409bcc90d450e2e90a58ce /lua/user/lazy.lua | |
parent | 6081f67ec9f5032fcd9d4453a2646ca033364615 (diff) |
checkpoint
- changed installation of tmux-navigator
- removed init.lua file in user/ directory
- added autocmd for terminal in insert mode
- added keybind for opening terminal
- added keybinds for lsp commands
- added lua lsp setup
- added nvim-cmp
- added keybind for editing config
- added keybinds for opening splits
- added conceallevel = 2
- commented encoding options
- plugins:
- added go.nvim
- added cmp-calc
- markdown:
- disable pairs for quotes
- added pairs in markdown
- go:
- added go lsp
- added autoformat of go files on save
Diffstat (limited to 'lua/user/lazy.lua')
-rw-r--r-- | lua/user/lazy.lua | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/lua/user/lazy.lua b/lua/user/lazy.lua index 640e10f..31780ec 100644 --- a/lua/user/lazy.lua +++ b/lua/user/lazy.lua @@ -42,7 +42,9 @@ require("lazy").setup({ "hrsh7th/cmp-path", -- cmp snippy support "dcampos/cmp-snippy", + "hrsh7th/cmp-calc", }, + event = { "InsertEnter", "CmdlineEnter" }, }, -- kind icons "onsails/lspkind.nvim", @@ -53,12 +55,43 @@ require("lazy").setup({ -- better ntrw "tpope/vim-vinegar", -- integration with tmux keybinds - "christoomey/vim-tmux-navigator", + { + "christoomey/vim-tmux-navigator", + cmd = { + "TmuxNavigateLeft", + "TmuxNavigateDown", + "TmuxNavigateUp", + "TmuxNavigateRight", + "TmuxNavigatePrevious", + }, + keys = { + { "<M-h>", "<cmd>TmuxNavigateLeft<cr>" }, + { "<M-j>", "<cmd>TmuxNavigateDown<cr>" }, + { "<M-k>", "<cmd>TmuxNavigateUp<cr>" }, + { "<M-l>", "<cmd>TmuxNavigateRight<cr>" }, + { "<M-\\>", "<cmd>TmuxNavigatePrevious<cr>" }, + }, + }, -- auto close brackets "m4xshen/autoclose.nvim", }, + { + "ray-x/go.nvim", + dependencies = { -- optional packages + "ray-x/guihua.lua", + "neovim/nvim-lspconfig", + "nvim-treesitter/nvim-treesitter", + }, + config = function() + require("go").setup() + end, + event = { "CmdlineEnter" }, + ft = { "go", "gomod" }, + build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries + }, - "mg979/vim-visual-multi", + "mg979/vim-visual-multi", + "jghauser/follow-md-links.nvim", { "dstein64/vim-startuptime", |