Compare commits
3 commits
30e7dc07e5
...
bf5a280f34
Author | SHA1 | Date | |
---|---|---|---|
bf5a280f34 | |||
16a579b6b3 | |||
d99a52fb0e |
2 changed files with 30 additions and 9 deletions
|
@ -54,16 +54,16 @@ in
|
||||||
yamlfmt
|
yamlfmt
|
||||||
];
|
];
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
nvim-autopairs
|
|
||||||
nvim-lastplace
|
|
||||||
catppuccin-nvim
|
catppuccin-nvim
|
||||||
cmp-nvim-lsp
|
cmp-nvim-lsp
|
||||||
|
cmp-spell
|
||||||
cmp_luasnip
|
cmp_luasnip
|
||||||
comment-nvim
|
comment-nvim
|
||||||
copilot-cmp
|
copilot-cmp
|
||||||
copilot-lua
|
copilot-lua
|
||||||
dashboard-nvim
|
dashboard-nvim
|
||||||
formatter-nvim
|
formatter-nvim
|
||||||
|
gitsigns-nvim
|
||||||
lsp_lines-nvim
|
lsp_lines-nvim
|
||||||
lspkind-nvim
|
lspkind-nvim
|
||||||
lualine-lsp-progress
|
lualine-lsp-progress
|
||||||
|
@ -72,9 +72,12 @@ in
|
||||||
neogit
|
neogit
|
||||||
noice-nvim
|
noice-nvim
|
||||||
nui-nvim # for noice-nvim
|
nui-nvim # for noice-nvim
|
||||||
|
nvim-autopairs
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
|
nvim-lastplace
|
||||||
nvim-lspconfig
|
nvim-lspconfig
|
||||||
nvim-surround
|
nvim-surround
|
||||||
|
nvim-tree-lua
|
||||||
nvim-treesitter-textsubjects
|
nvim-treesitter-textsubjects
|
||||||
nvim-treesitter.withAllGrammars
|
nvim-treesitter.withAllGrammars
|
||||||
nvim-ts-context-commentstring
|
nvim-ts-context-commentstring
|
||||||
|
@ -83,7 +86,6 @@ in
|
||||||
plenary-nvim # for telescope, neogit
|
plenary-nvim # for telescope, neogit
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
which-key-nvim
|
which-key-nvim
|
||||||
gitsigns-nvim
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -93,11 +93,6 @@ require("nvim-treesitter.configs").setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
local lspkind = require("lspkind")
|
local lspkind = require("lspkind")
|
||||||
lspkind.init({
|
|
||||||
symbol_map = {
|
|
||||||
Copilot = "",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
local luasnip = require("luasnip")
|
local luasnip = require("luasnip")
|
||||||
|
@ -107,6 +102,9 @@ cmp.setup({
|
||||||
mode = "symbol", -- show only symbol annotations
|
mode = "symbol", -- show only symbol annotations
|
||||||
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
|
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
|
||||||
ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
|
ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
|
||||||
|
symbol_map = {
|
||||||
|
Copilot = "",
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
|
@ -146,6 +144,16 @@ cmp.setup({
|
||||||
{ name = "luasnip", priority = 7 },
|
{ name = "luasnip", priority = 7 },
|
||||||
{ name = "nvim_lsp", priority = 9 },
|
{ name = "nvim_lsp", priority = 9 },
|
||||||
{ name = "orgmode", priority = 9 },
|
{ name = "orgmode", priority = 9 },
|
||||||
|
{
|
||||||
|
name = "spell",
|
||||||
|
option = {
|
||||||
|
keep_all_entries = false,
|
||||||
|
enable_in_context = function()
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
priority = 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -437,4 +445,15 @@ require("nvim-lastplace").setup({
|
||||||
lastplace_open_folds = true,
|
lastplace_open_folds = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
require("nvim-autopairs").setup({})
|
require("nvim-autopairs").setup()
|
||||||
|
|
||||||
|
-- disable netrw at the very start of your init.lua (strongly advised)
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
-- set termguicolors to enable highlight groups
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
-- empty setup using defaults
|
||||||
|
require("nvim-tree").setup()
|
||||||
|
wk.register({
|
||||||
|
t = { "<cmd>NvimTreeFindFileToggle<cr>", "nvim tree" },
|
||||||
|
}, { prefix = "<leader>t", silent = true })
|
||||||
|
|
Loading…
Reference in a new issue