More work, LSP is not working yet need to figure that out more
This commit is contained in:
parent
713d128018
commit
764b890c58
32 changed files with 290 additions and 441 deletions
15
lua/plugins/README.md
Normal file
15
lua/plugins/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Plugins to look into
|
||||
- https://github.com/andythigpen/nvim-coverage
|
||||
- https://github.com/lukas-reineke/indent-blankline.nvim
|
||||
- https://github.com/johmsalas/text-case.nvim
|
||||
- gitsigns?
|
||||
- casing plugins?
|
||||
["<leader>,"] = { name = " Misc Tools" },
|
||||
["<leader>,c"] = { name = " Casing" },
|
||||
["<leader>,cs"] = { ":Snek<CR>", desc = "To Snek Case" },
|
||||
["<leader>,cc"] = { ":Camel<CR>", desc = "To Camel Case" },
|
||||
["<leader>,cp"] = { ":CamelB<CR>", desc = "To Pascal Case" },
|
||||
["<leader>,ck"] = { ":Kebab<CR>", desc = "To Kebab Case" },
|
||||
["<leader>,ce"] = { ":Screm<CR>", desc = "To Screm Case" },
|
||||
- https://github.com/tpope/vim-fugitive
|
||||
|
5
lua/plugins/auto-save.lua
Normal file
5
lua/plugins/auto-save.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"Pocco81/auto-save.nvim",
|
||||
commit = "979b6c82f60cfa80f4cf437d77446d0ded0addf0", -- May 22, 2023
|
||||
event = "BufEnter",
|
||||
}
|
9
lua/plugins/http_rest.lua
Normal file
9
lua/plugins/http_rest.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"rest-nvim/rest.nvim",
|
||||
commit = "d8dc204e9f6fd930d9d1d709f0d19138f804431a",
|
||||
event = "BufEnter *.http",
|
||||
requires = { "nvim-lua/plenary.nvim" },
|
||||
keys = {
|
||||
{ "<leader>r", function() require("rest-nvim").run() end, desc = "Send http request" }
|
||||
}
|
||||
}
|
41
lua/plugins/layout-side-bar_neo-tree.lua
Normal file
41
lua/plugins/layout-side-bar_neo-tree.lua
Normal file
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
commit = "e5594d53986b34e584e8afe2ea6ad99d6f6d2105",
|
||||
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
||||
cmd = "Neotree",
|
||||
init = function() vim.g.neo_tree_remove_legacy_commands = true end,
|
||||
pin = true,
|
||||
tag = '2.56',
|
||||
opts = {
|
||||
auto_clean_after_session_restore = true,
|
||||
close_if_last_window = true,
|
||||
sources = { "filesystem" },
|
||||
filesystem = {
|
||||
follow_current_file = true,
|
||||
group_empty_dirs = true,
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignored = false,
|
||||
hide_by_name = {
|
||||
".DS_Store",
|
||||
},
|
||||
},
|
||||
},
|
||||
nesting_rules = {
|
||||
["ts"] = { ".cjs", ".cjs.map", ".d.ts", ".d.ts.map", ".js", ".js.map", ".mjs", ".mjs.map", ".test.ts" },
|
||||
["tsx"] = { ".d.ts", ".d.ts.map", ".js;", ".js.map;", ".jsx;", ".jsx.map;", ".module.scss;", ".svg" },
|
||||
["scss"] = { ".css", ".css.map" },
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>e", "<cmd>Neotree toggle<CR>", desc = "Toggle Explorer" },
|
||||
{ "<leader>o",function()
|
||||
if vim.bo.filetype == "neo-tree" then
|
||||
vim.cmd.wincmd "p"
|
||||
else
|
||||
vim.cmd.Neotree "focus"
|
||||
end
|
||||
end , desc = "Toggle Explorer Focus" },
|
||||
},
|
||||
}
|
20
lua/plugins/lsp-zero.lua
Normal file
20
lua/plugins/lsp-zero.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v2.x',
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{'neovim/nvim-lspconfig'}, -- Required
|
||||
{ -- Optional
|
||||
'williamboman/mason.nvim',
|
||||
build = function()
|
||||
pcall(vim.cmd, 'MasonUpdate')
|
||||
end,
|
||||
},
|
||||
{'williamboman/mason-lspconfig.nvim'}, -- Optional
|
||||
|
||||
-- Autocompletion
|
||||
{'hrsh7th/nvim-cmp'}, -- Required
|
||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||
{'L3MON4D3/LuaSnip'}, -- Required
|
||||
},
|
||||
}
|
13
lua/plugins/markdown_glow.lua
Normal file
13
lua/plugins/markdown_glow.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
"lnc3l0t/glow.nvim",
|
||||
commit = "bbd0473d72a45094495ee5600b5577823543eefe",
|
||||
branch = "advanced_window",
|
||||
config = {
|
||||
default_type = "keep",
|
||||
},
|
||||
cmd = "Glow",
|
||||
keys = {
|
||||
{ "<leader>m","<Nop>", desc = " Markdown" },
|
||||
{ "<leader>mp",":Glow <CR>", desc = "Markdown preview" },
|
||||
},
|
||||
}
|
8
lua/plugins/open-github.lua
Normal file
8
lua/plugins/open-github.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
"Almo7aya/openingh.nvim",
|
||||
commit = "374c081409dc238018cd986410f16190d8f9f680",
|
||||
event = "BufEnter",
|
||||
keys = {
|
||||
{ "<leader>gf", ":OpenInGHFile <CR>", desc = "Open in git" }
|
||||
},
|
||||
}
|
18
lua/plugins/telescope.lua
Normal file
18
lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = '0.1.1',
|
||||
dependencies = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", enabled = vim.fn.executable "make" == 1, build = "make" },
|
||||
},
|
||||
cmd = "Telescope",
|
||||
keys = {
|
||||
{ "<leader>f", "<Nop>", desc = "Find ..." },
|
||||
{ "<leader>ff", function() require('telescope.builtin').find_files() end, desc = "Find Files" },
|
||||
{ "<leader>fg", function() require('telescope.builtin').git_files() end, desc = "Find Git only Files" },
|
||||
{ "<leader>fw", function() require('telescope.builtin').live_grep() end, desc = "Find Words" },
|
||||
{ "<leader>fc", function() require('telescope.builtin').commands() end, desc = "Find Commands" },
|
||||
{ "<leader>fk", function() require('telescope.builtin').keymaps() end, desc = "Find Commands" },
|
||||
},
|
||||
opts = {},
|
||||
}
|
19
lua/plugins/theme_material.lua
Normal file
19
lua/plugins/theme_material.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"marko-cerovac/material.nvim",
|
||||
commit = "0c725897bc3d22c45fbf25a602002ee02f06f619", -- May 22, 2023
|
||||
config = function()
|
||||
vim.g.material_style = "darker"
|
||||
require("material").setup {
|
||||
plugins = {
|
||||
"dashboard",
|
||||
"gitsigns",
|
||||
"telescope",
|
||||
"nvim-tree",
|
||||
"which-key",
|
||||
},
|
||||
high_visibility = {
|
||||
darker = true
|
||||
}
|
||||
}
|
||||
end
|
||||
}
|
79
lua/plugins/treesitter.lua
Normal file
79
lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,79 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = { "windwp/nvim-ts-autotag", "JoosepAlviste/nvim-ts-context-commentstring" },
|
||||
commit = "f2778bd1a28b74adf5b1aa51aa57da85adfa3d16",
|
||||
build = ":TSUpdate",
|
||||
event = "BufEnter",
|
||||
cmd = {
|
||||
"TSBufDisable",
|
||||
"TSBufEnable",
|
||||
"TSBufToggle",
|
||||
"TSDisable",
|
||||
"TSEnable",
|
||||
"TSToggle",
|
||||
"TSInstall",
|
||||
"TSInstallInfo",
|
||||
"TSInstallSync",
|
||||
"TSModuleInfo",
|
||||
"TSUninstall",
|
||||
"TSUpdate",
|
||||
"TSUpdateSync",
|
||||
},
|
||||
opts = {
|
||||
-- "all",
|
||||
ensure_installed = {
|
||||
"http",
|
||||
"json",
|
||||
"bash",
|
||||
"css",
|
||||
"diff",
|
||||
"dockerfile",
|
||||
"dot",
|
||||
"git_rebase",
|
||||
"gitattributes",
|
||||
"html",
|
||||
"java",
|
||||
"javascript",
|
||||
"jq",
|
||||
"jsdoc",
|
||||
"json5",
|
||||
"kotlin",
|
||||
"latex",
|
||||
"make",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
"passwd",
|
||||
"prisma",
|
||||
"proto",
|
||||
"python",
|
||||
"regex",
|
||||
"rst",
|
||||
"rust",
|
||||
"scss",
|
||||
"sql",
|
||||
"svelte",
|
||||
"terraform",
|
||||
"toml",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"vue",
|
||||
"yaml",
|
||||
},
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = function(_, bufnr) return vim.api.nvim_buf_line_count(bufnr) > 10000 end,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
incremental_selection = { enable = true },
|
||||
ident = { enable = true },
|
||||
autotag = { enable = true },
|
||||
context_commentstring = { enable = true, enable_autocmd = false },
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
max_file_lines = nil,
|
||||
},
|
||||
},
|
||||
}
|
9
lua/plugins/undotree.lua
Normal file
9
lua/plugins/undotree.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"mbbill/undotree",
|
||||
commit = "485f01efde4e22cb1ce547b9e8c9238f36566f21",
|
||||
event = "BufEnter",
|
||||
keys = {
|
||||
{ "<leader>u", vim.cmd.UndotreeToggle, desc = "Undo Tree Toggle" },
|
||||
},
|
||||
}
|
||||
|
5
lua/plugins/util-plenary.lua
Normal file
5
lua/plugins/util-plenary.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"nvim-lua/plenary.nvim",
|
||||
commit = "9ac3e9541bbabd9d73663d757e4fe48a675bb054",
|
||||
}
|
||||
|
20
lua/plugins/util_which-key.lua
Normal file
20
lua/plugins/util_which-key.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
commit = "e271c28118998c93a14d189af3395812a1aa646c", -- May 22, 2023
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
end,
|
||||
opts = {
|
||||
icons = { group = vim.g.icons_enabled and "" or "+", separator = "" },
|
||||
disable = { filetypes = { "TelescopePrompt" } },
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
setup = function(_, opts)
|
||||
require("which-key").setup(opts)
|
||||
require("keymaps").which_key_register()
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue