mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-23 13:48:35 +02:00
lsp keymap and comment inline git blame
This commit is contained in:
parent
61611ee7aa
commit
fd1a3c6d61
2 changed files with 30 additions and 17 deletions
17
init.lua
17
init.lua
|
@ -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/
|
||||
local servers = {
|
||||
-- clangd = {},
|
||||
-- gopls = {},
|
||||
gopls = {
|
||||
hints = {
|
||||
rangeVariableTypes = true,
|
||||
parameterNames = true,
|
||||
constantValues = true,
|
||||
assignVariableTypes = true,
|
||||
compositeLiteralFields = true,
|
||||
compositeLiteralTypes = true,
|
||||
functionTypeParameters = true,
|
||||
},
|
||||
},
|
||||
-- pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- ... 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
|
||||
opts = {
|
||||
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
|
||||
-- <c-y> to accept ([y]es) the completion.
|
||||
-- This will auto-import if your LSP supports it.
|
||||
|
@ -824,7 +837,7 @@ require('lazy').setup({
|
|||
-- <c-k>: Toggle signature help
|
||||
--
|
||||
-- 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:
|
||||
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
return {
|
||||
'f-person/git-blame.nvim',
|
||||
-- load the plugin at startup
|
||||
event = 'VeryLazy',
|
||||
-- Because of the keys part, you will be lazy loading this plugin.
|
||||
-- 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",
|
||||
-- or lazy = false. One of both options will work.
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- for example
|
||||
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
|
||||
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
|
||||
},
|
||||
-- 'f-person/git-blame.nvim',
|
||||
-- -- load the plugin at startup
|
||||
-- event = 'VeryLazy',
|
||||
-- -- Because of the keys part, you will be lazy loading this plugin.
|
||||
-- -- 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",
|
||||
-- -- or lazy = false. One of both options will work.
|
||||
-- opts = {
|
||||
-- -- your configuration comes here
|
||||
-- -- for example
|
||||
-- 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
|
||||
-- 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
|
||||
-- },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue