Compare commits
3 commits
8865bb91b5
...
0d971b9ff1
Author | SHA256 | Date | |
---|---|---|---|
0d971b9ff1 | |||
4dd8d14dff | |||
53dafa797f |
5 changed files with 40 additions and 8 deletions
11
nvim/.config/nvim/lua/plugins/git.lua
Normal file
11
nvim/.config/nvim/lua/plugins/git.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
{
|
||||
"tpope/vim-fugitive"
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require("gitsigns").setup()
|
||||
end
|
||||
}
|
||||
}
|
|
@ -7,6 +7,9 @@ return {
|
|||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
opts = {
|
||||
auto_install = true
|
||||
},
|
||||
config = function()
|
||||
require('mason-lspconfig').setup({
|
||||
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.taplo.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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
return {
|
||||
return {
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v3.x',
|
||||
dependencies = {
|
||||
|
@ -6,9 +6,21 @@ return {
|
|||
'nvim-tree/nvim-web-devicons',
|
||||
'MunifTanjim/nui.nvim',
|
||||
},
|
||||
config = function()
|
||||
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>") -- ctrl + n = show filesystem on left side
|
||||
end
|
||||
opts = {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
show_hidden_count = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignored = true,
|
||||
hide_by_name = {
|
||||
'.DS_Store',
|
||||
'thumbs.db'
|
||||
},
|
||||
never_show = { '.git' }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,4 +2,12 @@ vim.cmd("set expandtab")
|
|||
vim.cmd("set tabstop=2")
|
||||
vim.cmd("set softtabstop=2")
|
||||
vim.cmd("set shiftwidth=2")
|
||||
vim.cmd("set clipboard+=unnamedplus")
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue