Fixed neovim completion
This commit is contained in:
parent
cdec28839b
commit
1f33a8d61a
7 changed files with 36 additions and 31 deletions
|
|
@ -1,12 +0,0 @@
|
|||
local options = {
|
||||
sources = {
|
||||
{ name = "nvim_lsp", group_index = 2 },
|
||||
{ name = "copilot", group_index = 2 },
|
||||
{ name = "luasnip", group_index = 2 },
|
||||
{ name = "buffer", group_index = 2 },
|
||||
{ name = "nvim_lua", group_index = 2 },
|
||||
{ name = "path", group_index = 2 },
|
||||
},
|
||||
}
|
||||
|
||||
require("cmp").setup(options)
|
||||
|
|
@ -3,7 +3,7 @@ local on_init = require("nvchad.configs.lspconfig").on_init
|
|||
local capabilities = require("nvchad.configs.lspconfig").capabilities
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = { "lua_ls", "html", "cssls", "pylsp", "java_language_server", "sqlls", "gopls" },
|
||||
ensure_installed = { "lua_ls", "html", "cssls", "pylsp", "sqlls", "gopls" },
|
||||
handlers = {
|
||||
function(server_name) -- default handler (optional)
|
||||
require("lspconfig")[server_name].setup {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ local options = {
|
|||
filters = {
|
||||
dotfiles = false,
|
||||
git_ignored = true,
|
||||
custom = { "node_modules", "venv", "__pycache__" },
|
||||
exclude = {},
|
||||
custom = { "git/", "node_modules/", "venv/", "__pycache__" },
|
||||
exclude = { },
|
||||
},
|
||||
disable_netrw = true,
|
||||
hijack_netrw = true,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
local set = vim.keymap.set
|
||||
require("zen-mode").setup({
|
||||
window = {
|
||||
width = 150,
|
||||
options = {}
|
||||
},
|
||||
})
|
||||
|
||||
set("n", "<leader>zz", function()
|
||||
require("zen-mode").setup({
|
||||
window = {
|
||||
width = 150,
|
||||
options = {}
|
||||
},
|
||||
})
|
||||
require("zen-mode").toggle()
|
||||
|
||||
vim.wo.wrap = false
|
||||
|
|
|
|||
|
|
@ -76,6 +76,3 @@ map("n", "<leader>tt", "<cmd>Trouble diagnostics toggle<CR>", { desc = "Errors O
|
|||
map("n", "<leader>tf", "<cmd>Trouble diagnostics toggle filter.buf=0<CR>", { desc = "Errors Open buffer diagnostics" })
|
||||
map("n", "<leader>tl", "<cmd>Trouble loclist toggle<CR>", { desc = "Errors Open location list" })
|
||||
map("n", "<leader>tq", "<cmd>Trouble qflist toggle<CR>", { desc = "Errors Open quickfix fist" })
|
||||
|
||||
-- ZenMode
|
||||
map("n", "<leader>zz", "<cmd>ZenMode<CR>", { desc = "ZenMode Toggle window" })
|
||||
|
|
|
|||
|
|
@ -36,4 +36,4 @@ o.foldenable = true
|
|||
|
||||
g.undotree_WindowLayout = 4
|
||||
g.undotree_DiffpanelHeight = 15
|
||||
g.undotree_SplitWidth = 60
|
||||
g.undotree_SplitWidth = 40
|
||||
|
|
|
|||
|
|
@ -2,14 +2,33 @@ return {
|
|||
{ "sitiom/nvim-numbertoggle", lazy = false, },
|
||||
{ "junegunn/gv.vim", cmd = { "GV" } },
|
||||
{ "mbbill/undotree", cmd = { "UndotreeToggle" } },
|
||||
{ "folke/trouble.nvim", cmd = { "Trouble" }},
|
||||
{ "folke/trouble.nvim", cmd = { "Trouble" }, opts = {}},
|
||||
{ "zbirenbaum/copilot.lua", event = "InsertEnter", config = function() require("configs.copilot") end },
|
||||
{ "nvim-tree/nvim-tree.lua", cmd = { "NvimTreeToggle", "NvimTreeFocus" }, config = function() require("configs.nvimtree") end },
|
||||
{ "folke/zen-mode.nvim", keys = { "<leader>zz" }, config = function() require("configs.zenmode") end },
|
||||
{ "stevearc/conform.nvim", config = function() require("configs.conform") end },
|
||||
{ "zbirenbaum/copilot-cmp", config = function() require("copilot_cmp").setup() end },
|
||||
{ "hrsh7th/nvim-cmp", dependencies = { "zbirenbaum/copilot-cmp" }, config = function() require("configs.lsp") end },
|
||||
{ "kylechui/nvim-surround", event = "VeryLazy", config = function() require("configs.nvim-surround") end },
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
{
|
||||
"zbirenbaum/copilot-cmp",
|
||||
config = function()
|
||||
require("copilot_cmp").setup()
|
||||
end,
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
sources = {
|
||||
{ name = "nvim_lsp", group_index = 2 },
|
||||
{ name = "copilot", group_index = 2 },
|
||||
{ name = "luasnip", group_index = 2 },
|
||||
{ name = "buffer", group_index = 2 },
|
||||
{ name = "nvim_lua", group_index = 2 },
|
||||
{ name = "path", group_index = 2 },
|
||||
},
|
||||
},
|
||||
},
|
||||
{ "kylechui/nvim-surround", event = "VeryLazy", opts = {} },
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
keys = {
|
||||
|
|
@ -20,9 +39,10 @@ return {
|
|||
},
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreview", "MarkdownPreviewToggle", "MarkdownPreviewStop" },
|
||||
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||
build = "cd app && yarn install",
|
||||
init = function() vim.g.mkdp_filetypes = { "markdown" } end,
|
||||
ft = { "markdown" },
|
||||
build = function() vim.fn["mkdp#util#install"]() end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue