Compare commits

...

3 commits

5 changed files with 40 additions and 8 deletions

View file

@ -0,0 +1,11 @@
return {
{
"tpope/vim-fugitive"
},
{
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup()
end
}
}

View file

@ -7,6 +7,9 @@ return {
}, },
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
opts = {
auto_install = true
},
config = function() config = function()
require('mason-lspconfig').setup({ require('mason-lspconfig').setup({
ensure_installed = { "lua_ls", "bashls", "gopls", "jsonls", "biome", "zk", "pyre", "rust_analyzer", "sqls", "taplo", "yamlls" } ensure_installed = { "lua_ls", "bashls", "gopls", "jsonls", "biome", "zk", "pyre", "rust_analyzer", "sqls", "taplo", "yamlls" }
@ -30,8 +33,6 @@ return {
lspconfig.sqls.setup({ capabilities = capabilities }) lspconfig.sqls.setup({ capabilities = capabilities })
lspconfig.taplo.setup({ capabilities = capabilities }) lspconfig.taplo.setup({ capabilities = capabilities })
lspconfig.yamlls.setup({ capabilities = capabilities }) lspconfig.yamlls.setup({ capabilities = capabilities })
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
end end
} }
} }

View file

@ -6,9 +6,21 @@ return {
'nvim-tree/nvim-web-devicons', 'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim', 'MunifTanjim/nui.nvim',
}, },
config = function() opts = {
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>") -- ctrl + n = show filesystem on left side filesystem = {
end filtered_items = {
visible = true,
show_hidden_count = true,
hide_dotfiles = false,
hide_gitignored = true,
hide_by_name = {
'.DS_Store',
'thumbs.db'
},
never_show = { '.git' }
}
}
}
} }

View file

@ -2,4 +2,12 @@ vim.cmd("set expandtab")
vim.cmd("set tabstop=2") vim.cmd("set tabstop=2")
vim.cmd("set softtabstop=2") vim.cmd("set softtabstop=2")
vim.cmd("set shiftwidth=2") vim.cmd("set shiftwidth=2")
vim.cmd("set clipboard+=unnamedplus")
vim.g.mapleader = " " vim.g.mapleader = " "
-- Setup custom keybinds
vim.keymap.set("n", "<C-n>", "<CMD>Neotree toggle<CR>") -- Open Neotree fs with CTRL - n
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action) -- Open Code actions with Space - ca
vim.keymap.set("n", "K", vim.lsp.buf.hover) -- Open information with captial K
vim.keymap.set("n", "<leader>gp", "<CMD>Gitsigns preview_hunk<CR>") -- Open tab with changes with Space - gp
vim.keymap.set("n", "<leader>gt", "<CMD>Gitsigns toggle_current_line_blame<CR>") -- Shows when and who changed with Space - gt

View file

@ -1,4 +1,4 @@
# created by KDE Plasma, Tue Jun 18 23:34:43 2024 # created by KDE Plasma, Wed Jun 26 10:00:02 2024
# #
gtk-alternative-button-order = 1 gtk-alternative-button-order = 1