Refactor contents to be compatible with GNU Stow
This commit is contained in:
parent
c931ac6aae
commit
e23e66f801
116 changed files with 6 additions and 100 deletions
14
.config/nvim/lua/plugins/git.lua
Normal file
14
.config/nvim/lua/plugins/git.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
tag = "v1.0.2",
|
||||
config = function()
|
||||
require("gitsigns").setup({
|
||||
current_line_blame = true,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
21
.config/nvim/lua/plugins/lualine.lua
Normal file
21
.config/nvim/lua/plugins/lualine.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
--`theme=codedark,
|
||||
component_separators = { left = '', right = '' },
|
||||
section_separators = { left = '', right = '' },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff', 'diagnostics'},
|
||||
lualine_c = {'filename'},
|
||||
lualine_x = {'encoding', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'}
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
29
.config/nvim/lua/plugins/mason.lua
Normal file
29
.config/nvim/lua/plugins/mason.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
{
|
||||
"mason-org/mason.nvim",
|
||||
tag = "v1.11.0",
|
||||
config = function()
|
||||
require("mason").setup({})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"mason-org/mason-lspconfig.nvim",
|
||||
tag = "v1.32.0",
|
||||
config = function()
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"bashls",
|
||||
"dockerls",
|
||||
--"gh-actions-language-server",
|
||||
"helm_ls",
|
||||
"jsonls",
|
||||
"marksman",
|
||||
"nginx_language_server",
|
||||
"ruff",
|
||||
"yamlls",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
22
.config/nvim/lua/plugins/neotree.lua
Normal file
22
.config/nvim/lua/plugins/neotree.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
},
|
||||
lazy = false, -- neo-tree will lazily load itself
|
||||
opts = {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
-- hide_dotfiles = false,
|
||||
hide_by_name = {
|
||||
'.git'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
.config/nvim/lua/plugins/none-ls.lua
Normal file
13
.config/nvim/lua/plugins/none-ls.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
config = function()
|
||||
local null_ls = require("null-ls")
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.mdformat,
|
||||
},
|
||||
})
|
||||
vim.keymap.set("n", "<leader>af", vim.lsp.buf.format, {desc="Auto-Format File"})
|
||||
end,
|
||||
}
|
19
.config/nvim/lua/plugins/nvim-lspconfig.lua
Normal file
19
.config/nvim/lua/plugins/nvim-lspconfig.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
tag = "v1.8.0",
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
lspconfig.lua_ls.setup({})
|
||||
lspconfig.bashls.setup({})
|
||||
lspconfig.dockerls.setup({})
|
||||
lspconfig.helm_ls.setup({})
|
||||
lspconfig.jsonls.setup({})
|
||||
lspconfig.nginx_language_server.setup({})
|
||||
lspconfig.marksman.setup({})
|
||||
lspconfig.ruff.setup({})
|
||||
lspconfig.yamlls.setup({})
|
||||
vim.keymap.set("n", "<leader>d", vim.lsp.buf.hover, { desc = "Show Docstring" })
|
||||
vim.keymap.set("n", "<leader>gt", vim.lsp.buf.definition, { desc = "Go To Definition" })
|
||||
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "Show Code Actions" })
|
||||
end,
|
||||
}
|
7
.config/nvim/lua/plugins/nvim-tmux-navigator.lua
Normal file
7
.config/nvim/lua/plugins/nvim-tmux-navigator.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"christoomey/vim-tmux-navigator",
|
||||
vim.keymap.set('n', '<c-Left>', ':TmuxNavigateLeft<CR>'),
|
||||
vim.keymap.set('n', '<c-Right>', ':TmuxNavigateRight<CR>'),
|
||||
vim.keymap.set('n', '<c-Up>', ':TmuxNavigateUp<CR>'),
|
||||
vim.keymap.set('n', '<c-Down>', ':TmuxNavigateDown<CR>'),
|
||||
}
|
22
.config/nvim/lua/plugins/telescope.lua
Normal file
22
.config/nvim/lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
},
|
||||
{
|
||||
'nvim-telescope/telescope-ui-select.nvim',
|
||||
config = function()
|
||||
require("telescope").setup ({
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown {
|
||||
-- even more opts
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
require("telescope").load_extension("ui-select")
|
||||
end
|
||||
}
|
||||
}
|
||||
|
15
.config/nvim/lua/plugins/theme.lua
Normal file
15
.config/nvim/lua/plugins/theme.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"projekt0n/github-nvim-theme",
|
||||
name = "github-theme",
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
require("github-theme").setup({
|
||||
options = {
|
||||
transparent = true,
|
||||
},
|
||||
})
|
||||
vim.cmd("colorscheme github_dark_default")
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#0d1117" })
|
||||
end,
|
||||
}
|
41
.config/nvim/lua/plugins/treesitter.lua
Normal file
41
.config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
local config = require("nvim-treesitter.configs")
|
||||
config.setup({
|
||||
-- A list of parser names, or "all" (the listed parsers MUST always be installed)
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"query",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"json",
|
||||
"jsonc",
|
||||
"python",
|
||||
"yaml",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
-- List of parsers to ignore installing (or "all")
|
||||
ignore_install = { "javascript" },
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
4
.config/nvim/lua/plugins/which-key.lua
Normal file
4
.config/nvim/lua/plugins/which-key.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue