Word highlighting, lsp_signature, calendar and settings / keybindings

Plugins:

- added word highlighting plugin mywords
- added lsp_signature plugin to show parameter signature while typing a
  function call
- added calendar.vim
- added lush.nvim needed for some theme definitions, though not for the
  nice and current default lunaperche

Keybindings:

- <space>m[mrc] for mywords
- <C-W>0 and <C-W>1 for window close / make single
- <C-,> for lsp references
- <C-.> for lsp definitions

Options:

- highlight last search term
- add I to shortmess to start with an empty file instead of splash
  screen
- fzf uses default-title as theme
- fzf registered as vim.ui.select implementation
- which_key shows global definitions, too
This commit is contained in:
2024-09-26 10:10:06 +02:00
parent db62337357
commit c80752ebea
4 changed files with 70 additions and 10 deletions

View File

@@ -43,10 +43,19 @@ require("lazy").setup({
end,
},
-- LSP manager
--
-- LSP manager and others
--
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
-- show lsp signature while coding
{
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {},
config = function(_, opts) require 'lsp_signature'.setup(opts) end
},
-- neogit setup
{
@@ -90,7 +99,9 @@ require("lazy").setup({
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
-- calling `setup` is optional for customization
require("fzf-lua").setup({})
local fzf = require("fzf-lua")
fzf.setup({ "default-title" })
fzf.register_ui_select()
end
},
@@ -119,7 +130,7 @@ require("lazy").setup({
{
"<leader>?",
function()
require("which-key").show({ global = false })
require("which-key").show({ global = true })
end,
desc = "Buffer Local Keymaps (which-key)",
},
@@ -247,4 +258,25 @@ require("lazy").setup({
-- refer to the configuration section below
}
},
-- highlight word under cursor
{
"dwrdx/mywords.nvim",
},
-- Calendar view
{
"itchyny/calendar.vim"
},
--------------------------------------------------
--
-- Color schemes
--
--------------------------------------------------
{
"rktjmp/lush.nvim"
-- if you wish to use your own colorscheme:
-- { dir = '/absolute/path/to/colorscheme', lazy = true },
},
})