Improved neovim config
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
},
|
||||
}
|
24
.config/nvim/lua/plugins/cmp.lua
Normal file
24
.config/nvim/lua/plugins/cmp.lua
Normal 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,
|
||||
}
|
@ -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,
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
event = "BufReadPre",
|
||||
config = function()
|
||||
require("gitsigns").setup()
|
||||
end,
|
||||
config = true,
|
||||
}
|
||||
|
18
.config/nvim/lua/plugins/noice.lua
Normal file
18
.config/nvim/lua/plugins/noice.lua
Normal 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,
|
||||
}
|
13
.config/nvim/lua/plugins/telescope-browser.lua
Normal file
13
.config/nvim/lua/plugins/telescope-browser.lua
Normal 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,
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
event = "VeryLazy",
|
||||
config = true,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim"
|
||||
},
|
||||
|
5
.config/nvim/lua/plugins/term.lua
Normal file
5
.config/nvim/lua/plugins/term.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
"NvChad/nvterm",
|
||||
event = "VeryLazy",
|
||||
config = true,
|
||||
}
|
@ -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,
|
||||
}
|
||||
|
@ -3,7 +3,6 @@ return {
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"navarasu/onedark.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup({
|
||||
|
Reference in New Issue
Block a user