update config
This commit is contained in:
parent
3338d39206
commit
ae790ae3ba
50
init.lua
50
init.lua
|
|
@ -176,6 +176,15 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
|||
-- Diagnostic keymaps
|
||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||
|
||||
-- Go to first character in line
|
||||
vim.keymap.set('', '<Leader>h', '^')
|
||||
|
||||
-- Go to last character in line
|
||||
vim.keymap.set('', '<Leader>l', 'g_')
|
||||
|
||||
-- Save
|
||||
vim.keymap.set('n', '<leader>w', ':wa <CR>')
|
||||
|
||||
-- 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 <C-\><C-n>, 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 = {
|
||||
{ '<leader>m', '<cmd>Grapple toggle<cr>', desc = 'Grapple toggle tag' },
|
||||
{ '<leader>k', '<cmd>Grapple toggle_tags<cr>', desc = 'Grapple toggle tags' },
|
||||
{ '<leader>K', '<cmd>Grapple toggle_scopes<cr>', desc = 'Grapple toggle scopes' },
|
||||
{ '<leader>j', '<cmd>Grapple cycle forward<cr>', desc = 'Grapple cycle forward' },
|
||||
{ '<leader>J', '<cmd>Grapple cycle backward<cr>', desc = 'Grapple cycle backward' },
|
||||
{ '<leader>1', '<cmd>Grapple select index=1<cr>', desc = 'Grapple select 1' },
|
||||
{ '<leader>2', '<cmd>Grapple select index=2<cr>', desc = 'Grapple select 2' },
|
||||
{ '<leader>3', '<cmd>Grapple select index=3<cr>', desc = 'Grapple select 3' },
|
||||
{ '<leader>4', '<cmd>Grapple select index=4<cr>', 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue