diff --git a/init.lua b/init.lua index b98ffc61..b06c0ced 100644 --- a/init.lua +++ b/init.lua @@ -176,6 +176,15 @@ vim.keymap.set('n', '', 'nohlsearch') -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +-- Go to first character in line +vim.keymap.set('', 'h', '^') + +-- Go to last character in line +vim.keymap.set('', 'l', 'g_') + +-- Save +vim.keymap.set('n', 'w', ':wa ') + -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- for people to discover. Otherwise, you normally need to press , which -- is not what someone will guess without a bit more experience. @@ -671,10 +680,10 @@ require('lazy').setup({ -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + clangd = {}, + gopls = {}, + pyright = {}, + rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -881,7 +890,8 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', + -- 'folke/tokyonight.nvim', + 'rebelot/kanagawa.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. config = function() ---@diagnostic disable-next-line: missing-fields @@ -895,6 +905,10 @@ require('lazy').setup({ -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. vim.cmd.colorscheme 'tokyonight-night' + -- vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'kanagawa-wave' + -- You can configure highlights by doing something like: + vim.cmd.hi 'Comment gui=none' end, }, @@ -963,6 +977,32 @@ 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 }, + { + 'christoomey/vim-tmux-navigator', + }, + { + 'cbochs/grapple.nvim', + dependencies = { + { 'nvim-tree/nvim-web-devicons', lazy = true }, + }, + opts = { + scope = 'git_branch', -- also try out "git_branch" + icons = false, + }, + event = { 'BufReadPost', 'BufNewFile' }, + cmd = 'Grapple', + keys = { + { 'm', 'Grapple toggle', desc = 'Grapple toggle tag' }, + { 'k', 'Grapple toggle_tags', desc = 'Grapple toggle tags' }, + { 'K', 'Grapple toggle_scopes', desc = 'Grapple toggle scopes' }, + { 'j', 'Grapple cycle forward', desc = 'Grapple cycle forward' }, + { 'J', 'Grapple cycle backward', desc = 'Grapple cycle backward' }, + { '1', 'Grapple select index=1', desc = 'Grapple select 1' }, + { '2', 'Grapple select index=2', desc = 'Grapple select 2' }, + { '3', 'Grapple select index=3', desc = 'Grapple select 3' }, + { '4', 'Grapple select index=4', desc = 'Grapple select 4' }, + }, + }, -- 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