mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
refactor(neovim): Rename files, move plugin declarations around, remove
plugins completely - Removed: dotnet with all related configs & plugins - Removed: `vim-highlightedyank` replaced with autocommand - Moved: `indent-blankline` from `code-generic` -> `ui` - Moved: All javascript plugins to `code-lsp`: WIP - Moved: `vim-easymotion` from `code-navigation` -> `navigation` - Renamed: `code-completion` -> `completion` - Renamed: `code-formatting` -> `formatting` - Renamed: `code-git` -> `git` - Renamed: `code-lint` -> `lint` - Renamed: `navigate-files` -> `navigation`
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
return {
|
|
||||||
cmd = { "omnisharp" },
|
|
||||||
handlers = {
|
|
||||||
["textDocument/definition"] = function(...)
|
|
||||||
return require("omnisharp_extended").handler(...)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
enable_roslyn_analyzers = true,
|
|
||||||
organize_imports_on_format = true,
|
|
||||||
enable_import_completion = true,
|
|
||||||
enable_editorconfig_support = true,
|
|
||||||
enable_ms_build_load_projects_on_demand = false,
|
|
||||||
analyze_open_documents_only = false,
|
|
||||||
settings = {
|
|
||||||
dotnet = {
|
|
||||||
server = {
|
|
||||||
useOmnisharpServer = true,
|
|
||||||
useModernNet = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
csharp = {
|
|
||||||
inlayHints = {
|
|
||||||
parameters = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
types = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -12,3 +12,16 @@ if not vim.g.vscode then
|
|||||||
nested = true,
|
nested = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
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({
|
||||||
|
higroup = "Visual", -- Highlight group to use
|
||||||
|
timeout = 400, -- Duration in milliseconds
|
||||||
|
on_visual = true, -- Highlight visual selections
|
||||||
|
on_macro = false, -- Don't highlight during macro playback
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|||||||
@@ -1,32 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
{ "tpope/vim-repeat" },
|
{ "tpope/vim-repeat" },
|
||||||
|
|
||||||
-- indent guides for Neovim
|
|
||||||
{
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
cond = require("config.util").is_not_vscode(),
|
|
||||||
opts = {
|
|
||||||
indent = { char = "│", tab_char = "│" },
|
|
||||||
scope = { enabled = false },
|
|
||||||
exclude = {
|
|
||||||
filetypes = {
|
|
||||||
"help",
|
|
||||||
"alpha",
|
|
||||||
"dashboard",
|
|
||||||
"neo-tree",
|
|
||||||
"Trouble",
|
|
||||||
"trouble",
|
|
||||||
"lazy",
|
|
||||||
"mason",
|
|
||||||
"notify",
|
|
||||||
"toggleterm",
|
|
||||||
"lazyterm",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
main = "ibl",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- mini.nvim: Collection of various small independent plugins/modules
|
-- mini.nvim: Collection of various small independent plugins/modules
|
||||||
{
|
{
|
||||||
"echasnovski/mini.nvim",
|
"echasnovski/mini.nvim",
|
||||||
|
|||||||
@@ -81,4 +81,38 @@ return {
|
|||||||
require("crates").setup()
|
require("crates").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Javascript/Typescript/React/Vue
|
||||||
|
--
|
||||||
|
-- Automatically add closing tags for HTML and JSX
|
||||||
|
{
|
||||||
|
"windwp/nvim-ts-autotag",
|
||||||
|
config = function()
|
||||||
|
require("nvim-ts-autotag").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Intelligent commenting on JSX
|
||||||
|
{
|
||||||
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
|
opts = {
|
||||||
|
options = {
|
||||||
|
enable_autocmd = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.g.skip_ts_context_commentstring_module = true
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Highlight colors
|
||||||
|
{
|
||||||
|
"brenoprata10/nvim-highlight-colors",
|
||||||
|
setup = {
|
||||||
|
enable_tailwind = true,
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-highlight-colors").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"easymotion/vim-easymotion",
|
|
||||||
keys = {
|
|
||||||
{ "<leader>j", "<Plug>(easymotion-s)", desc = "Easymotion jump" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -75,18 +75,7 @@ return {
|
|||||||
-- Text object
|
-- Text object
|
||||||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
||||||
|
|
||||||
-- Staging
|
|
||||||
-- Actions
|
|
||||||
map("n", "<leader>gr", gs.reset_hunk, { desc = "Git: reset hunk" })
|
map("n", "<leader>gr", gs.reset_hunk, { desc = "Git: reset hunk" })
|
||||||
map("n", "<leader>gsh", gs.stage_hunk, { desc = "Git: Stage Hunk" })
|
|
||||||
map("n", "<leader>gsu", gs.undo_stage_hunk, { desc = "Git: Undo Stage Hunk" })
|
|
||||||
map("n", "<leader>gsb", gs.stage_buffer, { desc = "Git: Stage Current File" })
|
|
||||||
-- visual mode
|
|
||||||
map("v", "<leader>gsH", function()
|
|
||||||
gs.stage_hunk({ vim.fn.line("."), vim.fn.line("v") })
|
|
||||||
end, { desc = "Git: Visual Stage Hunk" })
|
|
||||||
|
|
||||||
-- normal mode
|
|
||||||
map("n", "<leader>gp", gs.preview_hunk, { desc = "Git: Preview hunk" })
|
map("n", "<leader>gp", gs.preview_hunk, { desc = "Git: Preview hunk" })
|
||||||
|
|
||||||
map("n", "<leader>gK", function()
|
map("n", "<leader>gK", function()
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
return {
|
|
||||||
{ "Hoffs/omnisharp-extended-lsp.nvim", lazy = true },
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
return {
|
|
||||||
-- Automatically add closing tags for HTML and JSX
|
|
||||||
{
|
|
||||||
"windwp/nvim-ts-autotag",
|
|
||||||
config = function()
|
|
||||||
require("nvim-ts-autotag").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Intelligent commenting on JSX
|
|
||||||
{
|
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
|
||||||
opts = {
|
|
||||||
options = {
|
|
||||||
enable_autocmd = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
vim.g.skip_ts_context_commentstring_module = true
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Highlight colors
|
|
||||||
{
|
|
||||||
"brenoprata10/nvim-highlight-colors",
|
|
||||||
setup = {
|
|
||||||
enable_tailwind = true,
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("nvim-highlight-colors").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"easymotion/vim-easymotion",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>j", "<Plug>(easymotion-s)", desc = "Easymotion jump" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- File Explorer: Neotree
|
-- File Explorer: Neotree
|
||||||
{
|
{
|
||||||
@@ -17,8 +17,6 @@ return {
|
|||||||
cond = require("config.util").is_not_vscode(),
|
cond = require("config.util").is_not_vscode(),
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "machakann/vim-highlightedyank" },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
@@ -307,6 +305,32 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Indent guides for Neovim
|
||||||
|
{
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
cond = require("config.util").is_not_vscode(),
|
||||||
|
opts = {
|
||||||
|
indent = { char = "│", tab_char = "│" },
|
||||||
|
scope = { enabled = false },
|
||||||
|
exclude = {
|
||||||
|
filetypes = {
|
||||||
|
"help",
|
||||||
|
"alpha",
|
||||||
|
"dashboard",
|
||||||
|
"neo-tree",
|
||||||
|
"Trouble",
|
||||||
|
"trouble",
|
||||||
|
"lazy",
|
||||||
|
"mason",
|
||||||
|
"notify",
|
||||||
|
"toggleterm",
|
||||||
|
"lazyterm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
main = "ibl",
|
||||||
|
},
|
||||||
|
|
||||||
-- Better folds
|
-- Better folds
|
||||||
{
|
{
|
||||||
"kevinhwang91/nvim-ufo",
|
"kevinhwang91/nvim-ufo",
|
||||||
|
|||||||
Reference in New Issue
Block a user