nvim config added

This commit is contained in:
2023-02-07 02:00:28 +01:00
parent 910ba5b3c5
commit a3a96c3fc6
11 changed files with 316 additions and 20 deletions

View File

@@ -0,0 +1,17 @@
return {
{
'f-person/git-blame.nvim',
config = function()
vim.g.gitblame_date_format = '%r'
vim.g.gitblame_message_when_not_committed = ''
vim.g.gitblame_display_virtual_text = 0
end
},
{
'lewis6991/gitsigns.nvim',
config = function()
require('gitsigns').setup()
end
},
}

View File

@@ -0,0 +1,48 @@
return {
'RRethy/nvim-base16',
'tpope/vim-commentary',
-- completion
'hrsh7th/nvim-cmp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
'saadparwaiz1/cmp_luasnip',
-- snippets
'L3MON4D3/LuaSnip',
'rafamadriz/friendly-snippets',
-- emmet
'mattn/emmet-vim',
-- LSP
'neovim/nvim-lspconfig',
-- LSP, DAP, linters and formatters
-- 'jose-elias-alvarez/null-ls.nvim',
{
'dense-analysis/ale',
config = function()
vim.cmd [[ g:ale_sign_column_always = 1 ]]
end
},
-- management for LSP, DAP, linters and formatters
{
'williamboman/mason.nvim',
config = function()
require('mason').setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
}
})
end
},
'williamboman/mason-lspconfig.nvim',
}

View File

@@ -0,0 +1,16 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = { 'kyazdani42/nvim-web-devicons', lazy = true },
config = function()
local git_blame = require('gitblame')
require('lualine').setup({
sections = {
lualine_c = {
{ git_blame.get_current_blame_text, cond = git_blame.is_blame_text_available }
}
}
})
vim.o.showmode = false
end
}

View File

@@ -0,0 +1,19 @@
return {
'nvim-neo-tree/neo-tree.nvim',
cmd = 'Neotree',
branch = 'v2.x',
keys = {
{ '<leader>ft', '<cmd>Neotree toggle<cr>', desc = 'NeoTree' },
},
dependencies = {
'nvim-lua/plenary.nvim',
'MunifTanjim/nui.nvim',
},
opts = {
filesystem = {
follow_current_file = true,
hijack_netrw_behavior = 'open_current',
},
},
}

View File

@@ -0,0 +1,8 @@
return {
"folke/which-key.nvim",
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end
}

View File

@@ -0,0 +1,29 @@
return {
'folke/zen-mode.nvim',
config = {
window = {
backdrop = 1,
width = 80,
height = .9,
options = {
signcolumn = "no",
number = false,
relativenumber = false,
cursorline = false,
cursorcolumn = false,
foldcolumn = "0",
list = false,
}
},
opts = {
alacritty = {
enabled = true,
font = "13",
},
},
},
keys = {
{ '<leader>fg', '<cmd>ZenMode<cr>', desc = 'Zen Mode' },
},
}