lsp keymap and comment inline git blame

This commit is contained in:
khaydarov 2025-04-26 03:54:12 +05:00
parent 61611ee7aa
commit fd1a3c6d61
2 changed files with 30 additions and 17 deletions

View file

@ -662,7 +662,17 @@ require('lazy').setup({
-- 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 = {}, -- clangd = {},
-- gopls = {}, gopls = {
hints = {
rangeVariableTypes = true,
parameterNames = true,
constantValues = true,
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
functionTypeParameters = true,
},
},
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
@ -803,6 +813,9 @@ require('lazy').setup({
--- @type blink.cmp.Config --- @type blink.cmp.Config
opts = { opts = {
keymap = { keymap = {
['<S-Tab>'] = { 'select_prev', 'snippet_backward', 'fallback' },
['<Tab>'] = { 'select_next', 'snippet_forward', 'fallback' },
['<Esc>'] = { 'hide', 'fallback' },
-- 'default' (recommended) for mappings similar to built-in completions -- 'default' (recommended) for mappings similar to built-in completions
-- <c-y> to accept ([y]es) the completion. -- <c-y> to accept ([y]es) the completion.
-- This will auto-import if your LSP supports it. -- This will auto-import if your LSP supports it.
@ -824,7 +837,7 @@ require('lazy').setup({
-- <c-k>: Toggle signature help -- <c-k>: Toggle signature help
-- --
-- See :h blink-cmp-config-keymap for defining your own keymap -- See :h blink-cmp-config-keymap for defining your own keymap
preset = 'default', preset = 'enter',
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps

View file

@ -1,17 +1,17 @@
return { return {
'f-person/git-blame.nvim', -- 'f-person/git-blame.nvim',
-- load the plugin at startup -- -- load the plugin at startup
event = 'VeryLazy', -- event = 'VeryLazy',
-- Because of the keys part, you will be lazy loading this plugin. -- -- Because of the keys part, you will be lazy loading this plugin.
-- The plugin will only load once one of the keys is used. -- -- The plugin will only load once one of the keys is used.
-- If you want to load the plugin at startup, add something like event = "VeryLazy", -- -- If you want to load the plugin at startup, add something like event = "VeryLazy",
-- or lazy = false. One of both options will work. -- -- or lazy = false. One of both options will work.
opts = { -- opts = {
-- your configuration comes here -- -- your configuration comes here
-- for example -- -- for example
enabled = true, -- if you want to enable the plugin -- enabled = true, -- if you want to enable the plugin
message_template = ' <summary> • <date> • <author> • <<sha>>', -- template for the blame message, check the Message template section for more options -- message_template = ' <summary> • <date> • <author> • <<sha>>', -- template for the blame message, check the Message template section for more options
date_format = '%m-%d-%Y %H:%M:%S', -- template for the date, check Date format section for more options -- date_format = '%m-%d-%Y %H:%M:%S', -- template for the date, check Date format section for more options
virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options -- virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options
}, -- },
} }