Generic changes, notably adding git-blame

This commit is contained in:
TheSoeren 2024-06-25 22:34:00 +02:00
parent dd28b344e4
commit e2f3ffcc02
6 changed files with 24 additions and 34 deletions

View File

@ -131,8 +131,8 @@ examples of adding popularly requested plugins.
same functionality is available here: same functionality is available here:
* [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim) * [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim)
* Discussions on this topic can be found here: * Discussions on this topic can be found here:
* [Restructure the configuration](https://github.com/nvim-lua/kickstart.nvim/issues/218) * [Restructure the configuration](https://github.com/TheSoeren/kickstart.nvim/issues/218)
* [Reorganize init.lua into a multi-file setup](https://github.com/nvim-lua/kickstart.nvim/pull/473) * [Reorganize init.lua into a multi-file setup](https://github.com/TheSoeren/kickstart.nvim/pull/473)
### Install Recipes ### Install Recipes

View File

@ -0,0 +1 @@
return { 'Decodetalkers/csharpls-extended-lsp.nvim' }

View File

@ -0,0 +1,9 @@
return {
'FabijanZulj/blame.nvim',
config = function()
local blame = require 'blame'
blame.setup()
vim.keymap.set('n', '<leader>gb', ':BlameToggle<CR>')
end,
}

View File

@ -33,6 +33,7 @@ return {
vim.keymap.set('n', '<leader>a', function() vim.keymap.set('n', '<leader>a', function()
harpoon:list():add() harpoon:list():add()
end) end)
vim.keymap.set('n', '<C-h>', function() vim.keymap.set('n', '<C-h>', function()
harpoon:list():select(1) harpoon:list():select(1)
end) end)
@ -46,12 +47,17 @@ return {
harpoon:list():select(4) harpoon:list():select(4)
end) end)
-- Toggle previous & next buffers stored within Harpoon list vim.keymap.set('n', '<leader><C-h>', function()
vim.keymap.set('n', '<C-S-H>', function() harpoon:list():replace_at(1)
harpoon:list():prev()
end) end)
vim.keymap.set('n', '<C-S-L>', function() vim.keymap.set('n', '<leader><C-j>', function()
harpoon:list():next() harpoon:list():replace_at(2)
end)
vim.keymap.set('n', '<leader><C-k>', function()
harpoon:list():replace_at(3)
end)
vim.keymap.set('n', '<leader><C-l>', function()
harpoon:list():replace_at(4)
end) end)
end, end,
} }

View File

@ -359,16 +359,6 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server. -- - 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/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
-- 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:
-- https://github.com/pmizio/typescript-tools.nvim
--
-- But for many setups, the LSP (`tsserver`) will work just fine
tsserver = {}, tsserver = {},
csharp_ls = {}, csharp_ls = {},
netcoredbg = {}, netcoredbg = {},
@ -404,12 +394,9 @@ require('lazy').setup({
local ensure_installed = vim.tbl_keys(servers or {}) local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, { vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code 'stylua', -- Used to format Lua code
'clangd',
'clang-format', 'clang-format',
'csharp_ls',
'lua_ls', 'lua_ls',
'omnisharp', 'omnisharp',
'tsserver',
}) })
require('mason-tool-installer').setup { ensure_installed = ensure_installed } require('mason-tool-installer').setup { ensure_installed = ensure_installed }
@ -447,7 +434,7 @@ require('lazy').setup({
-- Disable "format_on_save lsp_fallback" for languages that don't -- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional -- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones. -- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true } local disable_filetypes = { c = true }
return { return {
timeout_ms = 500, timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
@ -683,11 +670,6 @@ require('lazy').setup({
-- require 'kickstart.plugins.neo-tree', -- require 'kickstart.plugins.neo-tree',
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- 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`
-- 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.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
{ import = 'custom.plugins' }, { import = 'custom.plugins' },
}, { }, {
ui = { ui = {

View File

@ -26,14 +26,6 @@ vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>') vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier.
-- See `:help wincmd` for a list of all window commands
-- THIS WOULD CLASH WITH HARPOON BUFFER SELECTION
-- vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
-- vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
-- vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
-- vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Enable moving highlighted lines -- Enable moving highlighted lines
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv") vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv")
vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv") vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv")