update nvim config

This commit is contained in:
lucy 2026-06-27 00:58:22 +02:00
commit 4aa17d8d06

View file

@ -17,11 +17,14 @@ vim.lsp.enable("lua-language-server")
-- add plugins
vim.pack.add({
"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/tinted-theming/tinted-nvim.git",
"https://github.com/neovim/nvim-lspconfig",
"https://github.com/vyfor/cord.nvim",
"https://github.com/nvim-mini/mini.nvim"
})
require('tinted-nvim').setup({
selector = { enabled = true, mode = "cmd" },
@ -29,10 +32,16 @@ require('tinted-nvim').setup({
transparent = true,
}
})
require('mini.basics').setup()
require('mini.icons').setup()
require('mini.pick').setup()
require('blink.cmp').build():pwait()
require('blink.cmp').setup()
require('blink.indent').setup({
scope = {
enabled = true,
underline = {
enabled = true,
},
}
})
require("cord").setup({
display = {
theme = "atom",
@ -42,12 +51,15 @@ require("cord").setup({
require("lualine").setup({
options = {
theme = "tinted",
section_separators = { left = "", right = "" },
component_separators = { left = "", right = "" },
},
sections = {
lualine_a = { "mode" },
lualine_b = { "diagnostics" },
lualine_c = { "filename" },
lualine_x = { "lsp_status", "filetype" },
lualine_c = { "diagnostics" },
lualine_b = { "filename", { "filetype", icon_only = true } },
lualine_x = { "lsp_status", },
lualine_y = { "" },
lualine_z = { "location" },
},
@ -67,5 +79,4 @@ end
map("n", "<C-f>", function() vim.lsp.buf.format() end)
map("n", "<leader>t", "<cmd> terminal <cr>")
map("t", "<esc>", "<c-\\><c-n>")
map("i", "<C-space>", "<C-X><C-O>")
map("n", "<leader>w", "<cmd> bdelete! <cr>")