Improved neovim config

This commit is contained in:
2023-08-21 00:09:00 +02:00
parent d07a82fff2
commit 2ad93d9338
15 changed files with 140 additions and 53 deletions

View File

@ -1,9 +0,0 @@
return {
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
},
}

View File

@ -0,0 +1,24 @@
return {
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
},
config = function()
local cmp = require("cmp")
cmp.setup({
mapping = {
["<C-space>"] = cmp.mapping.complete(),
["<cr>"] = cmp.mapping.confirm({ select = true }),
},
sources = {
{ name = "nvim_lsp" },
{ name = "buffer" },
{ name = "path" },
},
})
end,
}

View File

@ -1,13 +1,11 @@
return {
"numToStr/Comment.nvim",
event = "VeryLazy",
config = true,
opts = {
mappings = {
basic = false,
extra = false,
},
},
config = function(_, opts)
require("Comment").setup(opts)
end,
}

View File

@ -1,7 +1,5 @@
return {
"lewis6991/gitsigns.nvim",
event = "BufReadPre",
config = function()
require("gitsigns").setup()
end,
config = true,
}

View File

@ -0,0 +1,18 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
opts = {
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
},
config = true,
}

View File

@ -0,0 +1,13 @@
return {
"nvim-telescope/telescope-file-browser.nvim",
enabled = false,
event = "VeryLazy",
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim"
},
config = function()
require("telescope").load_extension("file_browser")
vim.keymap.set("n", "<leader>fb", "<cmd>Telescope file_browser<cr>", "File browser")
end,
}

View File

@ -1,6 +1,7 @@
return {
"nvim-telescope/telescope.nvim",
event = "VeryLazy",
config = true,
dependencies = {
"nvim-lua/plenary.nvim"
},

View File

@ -0,0 +1,5 @@
return {
"NvChad/nvterm",
event = "VeryLazy",
config = true,
}

View File

@ -1,7 +1,14 @@
return {
"navarasu/onedark.nvim",
event = "VeryLazy",
config = function()
require('onedark').load()
lazy = false,
priority = 1000,
opts = {
style = "dark",
transparent = false,
},
config = function(_, opts)
local theme = require("onedark")
theme.setup(opts)
theme.load()
end,
}

View File

@ -3,7 +3,6 @@ return {
event = "VeryLazy",
dependencies = {
"nvim-tree/nvim-web-devicons",
"navarasu/onedark.nvim",
},
config = function()
require("nvim-tree").setup({