aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/editing.lua20
-rw-r--r--nvim/lua/plugins/git.lua7
-rw-r--r--nvim/lua/plugins/lsp.lua29
-rw-r--r--nvim/lua/plugins/telescope.lua9
-rw-r--r--nvim/lua/plugins/treesitter.lua29
-rw-r--r--nvim/lua/plugins/ui.lua58
6 files changed, 152 insertions, 0 deletions
diff --git a/nvim/lua/plugins/editing.lua b/nvim/lua/plugins/editing.lua
new file mode 100644
index 0000000..44f74c6
--- /dev/null
+++ b/nvim/lua/plugins/editing.lua
@@ -0,0 +1,20 @@
1return {
2 { "tpope/vim-repeat" },
3 { "tpope/vim-surround" },
4
5 {
6 "romainl/vim-cool",
7 event = "VeryLazy",
8 },
9
10 {
11 "windwp/nvim-autopairs",
12 event = "InsertEnter",
13 config = true,
14 },
15
16 {
17 "windwp/nvim-ts-autotag",
18 event = "InsertEnter",
19 },
20}
diff --git a/nvim/lua/plugins/git.lua b/nvim/lua/plugins/git.lua
new file mode 100644
index 0000000..1fd2418
--- /dev/null
+++ b/nvim/lua/plugins/git.lua
@@ -0,0 +1,7 @@
1return {
2 {
3 "lewis6991/gitsigns.nvim",
4 event = { "BufReadPre", "BufNewFile" },
5 config = true,
6 },
7}
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
new file mode 100644
index 0000000..e888ae0
--- /dev/null
+++ b/nvim/lua/plugins/lsp.lua
@@ -0,0 +1,29 @@
1return {
2 {
3 "neovim/nvim-lspconfig",
4 lazy = false,
5 config = function()
6 vim.lsp.config.lua_ls = {
7 settings = {
8 Lua = {
9 diagnostics = {
10 globals = { "vim" },
11 },
12 workspace = {
13 checkThirdParty = false,
14 library = {
15 vim.fn.expand("$VIMRUNTIME/lua"),
16 vim.fn.expand("$XDG_CONFIG_HOME") .. "/nvim/lua",
17 },
18 },
19 },
20 },
21 }
22
23 vim.lsp.enable({
24 "clangd", -- pkg install llvm
25 "lua_ls", -- pkg install lua-language-server
26 })
27 end,
28 },
29}
diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua
new file mode 100644
index 0000000..7633892
--- /dev/null
+++ b/nvim/lua/plugins/telescope.lua
@@ -0,0 +1,9 @@
1return {
2 {
3 "nvim-telescope/telescope.nvim",
4 dependencies = {
5 "nvim-lua/plenary.nvim",
6 },
7 lazy = true,
8 },
9}
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..edcaff2
--- /dev/null
+++ b/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,29 @@
1-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md
2
3return {
4 {
5 "nvim-treesitter/nvim-treesitter",
6 branch = "main",
7 build = ":TSUpdate",
8 lazy = false,
9 config = function()
10 local treesitter = require("nvim-treesitter")
11
12 treesitter.setup({})
13
14 -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md
15 treesitter.install({
16 "c",
17 "cpp",
18 "html",
19 "python",
20 "vim",
21 "vimdoc",
22 "javascript",
23 "lua",
24 "typescript",
25 "vim",
26 })
27 end,
28 },
29}
diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua
new file mode 100644
index 0000000..10c4762
--- /dev/null
+++ b/nvim/lua/plugins/ui.lua
@@ -0,0 +1,58 @@
1return {
2
3 {
4 "Mofiqul/vscode.nvim",
5 priority = 1000, -- wichtig: vor anderen UI-Plugins laden
6 lazy = false,
7 config = function()
8 local vscode = require("vscode")
9
10 vscode.setup({
11 style = "dark",
12 transparent = false,
13 italic_comments = true,
14 underline_links = true,
15 disable_nvimtree_bg = true,
16 })
17
18 vscode.load()
19 end,
20 },
21
22 {
23 "nvim-tree/nvim-tree.lua",
24 dependencies = {
25 "nvim-tree/nvim-web-devicons",
26 },
27 cmd = { "NvimTreeToggle", "NvimTreeOpen" },
28 keys = {
29 { "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Explorer toggle" },
30 },
31 config = function()
32 require("nvim-tree").setup({
33 view = {
34 width = 30,
35 },
36 renderer = {
37 highlight_git = true,
38 icons = {
39 show = {
40 file = true,
41 folder = true,
42 git = true,
43 },
44 },
45 },
46 filters = {
47 dotfiles = false,
48 },
49 })
50 end,
51 },
52
53 {
54 "RRethy/vim-illuminate",
55 event = "BufReadPost",
56 },
57
58}