update nvim config
This commit is contained in:
parent
0918890f78
commit
4aa17d8d06
1 changed files with 20 additions and 9 deletions
|
|
@ -17,11 +17,14 @@ vim.lsp.enable("lua-language-server")
|
||||||
-- add plugins
|
-- add plugins
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
"https://github.com/nvim-treesitter/nvim-treesitter",
|
"https://github.com/nvim-treesitter/nvim-treesitter",
|
||||||
|
"https://github.com/saghen/blink.lib",
|
||||||
|
"https://github.com/saghen/blink.cmp.git",
|
||||||
|
"https://github.com/saghen/blink.indent",
|
||||||
|
'https://github.com/nvim-tree/nvim-web-devicons',
|
||||||
"https://github.com/nvim-lualine/lualine.nvim",
|
"https://github.com/nvim-lualine/lualine.nvim",
|
||||||
"https://github.com/tinted-theming/tinted-nvim.git",
|
"https://github.com/tinted-theming/tinted-nvim.git",
|
||||||
"https://github.com/neovim/nvim-lspconfig",
|
"https://github.com/neovim/nvim-lspconfig",
|
||||||
"https://github.com/vyfor/cord.nvim",
|
"https://github.com/vyfor/cord.nvim",
|
||||||
"https://github.com/nvim-mini/mini.nvim"
|
|
||||||
})
|
})
|
||||||
require('tinted-nvim').setup({
|
require('tinted-nvim').setup({
|
||||||
selector = { enabled = true, mode = "cmd" },
|
selector = { enabled = true, mode = "cmd" },
|
||||||
|
|
@ -29,10 +32,16 @@ require('tinted-nvim').setup({
|
||||||
transparent = true,
|
transparent = true,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
require('mini.basics').setup()
|
require('blink.cmp').build():pwait()
|
||||||
require('mini.icons').setup()
|
require('blink.cmp').setup()
|
||||||
require('mini.pick').setup()
|
require('blink.indent').setup({
|
||||||
|
scope = {
|
||||||
|
enabled = true,
|
||||||
|
underline = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
require("cord").setup({
|
require("cord").setup({
|
||||||
display = {
|
display = {
|
||||||
theme = "atom",
|
theme = "atom",
|
||||||
|
|
@ -42,12 +51,15 @@ require("cord").setup({
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
theme = "tinted",
|
theme = "tinted",
|
||||||
|
section_separators = { left = "", right = "" },
|
||||||
|
component_separators = { left = "", right = "" },
|
||||||
},
|
},
|
||||||
|
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { "diagnostics" },
|
lualine_c = { "diagnostics" },
|
||||||
lualine_c = { "filename" },
|
lualine_b = { "filename", { "filetype", icon_only = true } },
|
||||||
lualine_x = { "lsp_status", "filetype" },
|
lualine_x = { "lsp_status", },
|
||||||
lualine_y = { "" },
|
lualine_y = { "" },
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
|
|
@ -67,5 +79,4 @@ end
|
||||||
map("n", "<C-f>", function() vim.lsp.buf.format() end)
|
map("n", "<C-f>", function() vim.lsp.buf.format() end)
|
||||||
map("n", "<leader>t", "<cmd> terminal <cr>")
|
map("n", "<leader>t", "<cmd> terminal <cr>")
|
||||||
map("t", "<esc>", "<c-\\><c-n>")
|
map("t", "<esc>", "<c-\\><c-n>")
|
||||||
map("i", "<C-space>", "<C-X><C-O>")
|
|
||||||
map("n", "<leader>w", "<cmd> bdelete! <cr>")
|
map("n", "<leader>w", "<cmd> bdelete! <cr>")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue