Update .config/nvim/init.lua
Update .config/nvim/lazy-lock.json Add .config/nvim/lua/config/30_autocmds.lua Add .config/nvim/lua/plugin/15_lsp.lua Update .config/nvim/lua/plugin/20_completion.lua
This commit is contained in:
parent
7f85a60f51
commit
6a448f0654
5 changed files with 30 additions and 4 deletions
|
|
@ -7,14 +7,19 @@
|
||||||
-- ├──── 00_lazy.lua Bootstraps lazy.nvim
|
-- ├──── 00_lazy.lua Bootstraps lazy.nvim
|
||||||
-- ├──── 10_opts.lua Built-in Nvim options
|
-- ├──── 10_opts.lua Built-in Nvim options
|
||||||
-- ├──── 20_keymaps.lua Custom keymaps
|
-- ├──── 20_keymaps.lua Custom keymaps
|
||||||
|
-- ├──── 30_autocmds.lua Custom autocmds
|
||||||
-- ├── plugin/ Plugins for lazy.nvim are in here
|
-- ├── plugin/ Plugins for lazy.nvim are in here
|
||||||
-- ├──── 00_colorscheme.lua Sets theme
|
-- ├──── 00_colorscheme.lua Sets theme
|
||||||
-- ├──── 10_hop.lua Enables hopping to words in the current buffer
|
-- ├──── 10_hop.lua Enables hopping to words in the current buffer
|
||||||
-- ├──── 20_completion.lua Autocompletion with mini.completion, and mini.snippets
|
-- ├──── 15_lsp.lua Mason, LSP configurations
|
||||||
|
-- ├──── 20_completion.lua Autocompletion with blink.cmp, and mini.snippets
|
||||||
-- ├ snippets/ Snippets definitions are in here
|
-- ├ snippets/ Snippets definitions are in here
|
||||||
|
-- ├── package.json Snippet repository metadata
|
||||||
-- ├── global.json Global text snippets
|
-- ├── global.json Global text snippets
|
||||||
|
-- ├── lua.json Lua-specific snippets
|
||||||
|
-- ├── etc. ... and the same for any other language-specific snippets.
|
||||||
|
|
||||||
require("config.00_lazy")
|
require("config.00_lazy")
|
||||||
require("config.10_opts")
|
require("config.10_opts")
|
||||||
require("config.20_keymaps")
|
require("config.20_keymaps")
|
||||||
|
require("config.30_autocmds")
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
"helix-nvim": { "branch": "main", "commit": "c2875fb19df7f3624d0ae1c82b063fc14de1d64b" },
|
"helix-nvim": { "branch": "main", "commit": "c2875fb19df7f3624d0ae1c82b063fc14de1d64b" },
|
||||||
"hop.nvim": { "branch": "master", "commit": "08ddca799089ab96a6d1763db0b8adc5320bf050" },
|
"hop.nvim": { "branch": "master", "commit": "08ddca799089ab96a6d1763db0b8adc5320bf050" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" },
|
"lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "d7b5feb6e769e995f7fcf44d92f49f811c51d10c" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
"mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" },
|
"mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "a89bfcfd0e44f898341ac8a80ba83ccf6218bef3" },
|
||||||
"nvim-scissors": { "branch": "main", "commit": "9b4fc66427568b2139480fcc645dd7bb91884ade" }
|
"nvim-scissors": { "branch": "main", "commit": "9b4fc66427568b2139480fcc645dd7bb91884ade" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
private_dot_config/nvim/lua/config/30_autocmds.lua
Normal file
8
private_dot_config/nvim/lua/config/30_autocmds.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- 30_autocmds.lua
|
||||||
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
|
desc = 'Highlight when yanking text',
|
||||||
|
group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
vim.highlight.on_yank()
|
||||||
|
end,
|
||||||
|
})
|
||||||
10
private_dot_config/nvim/lua/plugin/15_lsp.lua
Normal file
10
private_dot_config/nvim/lua/plugin/15_lsp.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'mason-org/mason-lspconfig.nvim',
|
||||||
|
opts = {},
|
||||||
|
dependencies = {
|
||||||
|
{ 'mason-org/mason.nvim', opts = {} },
|
||||||
|
{ 'neovim/nvim-lspconfig' },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -28,8 +28,8 @@ return {
|
||||||
'chrisgrieser/nvim-scissors',
|
'chrisgrieser/nvim-scissors',
|
||||||
opts = { snippetDir = vim.fn.stdpath("config") .. "/snippets" },
|
opts = { snippetDir = vim.fn.stdpath("config") .. "/snippets" },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-s>", "<cmd>ScissorsAddNewSnippet<CR>", mode = { "x" }, desc = "Save selection as snippet" },
|
{ "<leader>sa", "<cmd>ScissorsAddNewSnippet<CR>", mode = { "n", "x" }, desc = "Save selection as snippet" },
|
||||||
{ "<C-e>", "<cmd>ScissorsEditSnippet<CR>", mode = { "n", "x" }, desc = "Edit existing snippet" },
|
{ "<leader>se", "<cmd>ScissorsEditSnippet<CR>", mode = { "n", "x" }, desc = "Edit existing snippet" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue