Files
dotfiles/config/nvim/lua/plugins/init.lua
T
2026-08-09 06:11:58 +02:00

103 lines
2.2 KiB
Lua

vim.pack.add({
{ src = 'https://github.com/ibhagwan/fzf-lua' },
{ src = "https://github.com/saghen/blink.lib" },
{ src = "https://github.com/Saghen/blink.cmp" },
{ src = 'https://github.com/neovim/nvim-lspconfig' },
{ src = 'https://github.com/romus204/tree-sitter-manager.nvim' },
{ src = 'https://github.com/lukas-reineke/indent-blankline.nvim' },
{ src = 'hIdentlinesttps://github.com/xiyaowong/transparent.nvim' },
{ src = 'https://github.com/stevearc/oil.nvim' },
{ src = 'https://github.com/Mofiqul/vscode.nvim.git' },
})
-- Colorscheme
vim.cmd [[colorscheme vscode]]
-- Treesitter
require("tree-sitter-manager").setup()
-- Identlines
require("ibl").setup({
indent = {
char = "",
},
scope = {
show_start = false,
show_end = false,
},
})
-- File explorer
require("oil").setup({
default_file_explorer = true,
columns = { "icon" },
view_options = {
show_hidden = true,
},
keymaps = {
["<CR>"] = "actions.select",
["l"] = "actions.select",
["h"] = "actions.parent",
["q"] = "actions.close",
},
})
map("n", "<C-e>", "<Cmd>Oil<CR>")
-- Fuzzy Finders
require("fzf-lua").setup({})
map("n", "<C-p>", "<Cmd>FzfLua files<CR>")
map("n", "<C-m>", "<Cmd>FzfLua buffers<CR>")
map("n", "<C-i>", "<Cmd>FzfLua diagnostics_workspace<CR>")
map("n", "<C-f>", "<Cmd>FzfLua live_grep<CR>")
map("n", "<C-b>", "<Cmd>FzfLua grep_curbuf<CR>")
-- autocomplete
require("blink.cmp").setup({
keymap = {
["<Tab>"] = {
"select_next",
"fallback",
},
["<S-Tab>"] = {
"select_prev",
"fallback",
},
["<C-n>"] = {
"select_next",
"fallback",
},
["<C-p>"] = {
"select_prev",
"fallback",
},
["<CR>"] = {
"accept",
"fallback",
},
["<C-Space>"] = {
"show",
"show_documentation",
"hide_documentation",
},
["<Esc>"] = {
"hide",
"fallback",
},
},
appearance = { nerd_font_variant = "normal", },
completion = {
menu = { border = "single", },
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
window = { border = "single" },
},
ghost_text = { enabled = false },
},
signature = { enabled = false },
sources = {
default = { "lsp", "path", "buffer" },
},
fuzzy = { implementation = "lua" },
})