diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-09-02 10:12:27 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-09-02 10:12:27 +0100 |
| commit | eb1e6c6c345c4a588c28d2937949adc1b440133f (patch) | |
| tree | 62bade01156700bfcc7aabc0369f87819b07e8a5 /lua/plugins | |
| parent | 16ed97e8c41b93c6d8fda33529ccd334e224a99c (diff) | |
🦄org: now using an org document to configure nvim.
I know I messed up
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/autopairs.lua | 2 | ||||
| -rw-r--r-- | lua/plugins/completions.lua | 2 | ||||
| -rw-r--r-- | lua/plugins/dadbod.lua | 16 | ||||
| -rw-r--r-- | lua/plugins/debugging.lua | 130 | ||||
| -rw-r--r-- | lua/plugins/lsp-config.lua | 48 | ||||
| -rw-r--r-- | lua/plugins/none-ls.lua | 17 | ||||
| -rw-r--r-- | lua/plugins/rustaceanvim.lua | 5 | ||||
| -rw-r--r-- | lua/plugins/tailwind-tools.lua | 5 |
8 files changed, 120 insertions, 105 deletions
diff --git a/lua/plugins/autopairs.lua b/lua/plugins/autopairs.lua index 34de81c..ee1683f 100644 --- a/lua/plugins/autopairs.lua +++ b/lua/plugins/autopairs.lua @@ -3,7 +3,7 @@ return { event = "InsertEnter", config = function() require("nvim-autopairs").setup({ - check_ts = true, -- Enable autopairs for treesitter + check_ts = true, }) end, } diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 5aa87aa..892c193 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -38,7 +38,7 @@ return { ["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-Space>"] = cmp.mapping.complete(), ["<C-e>"] = cmp.mapping.abort(), - ["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + ["<CR>"] = cmp.mapping.confirm({ select = true }), }), sources = cmp.config.sources({ { name = "nvim_lsp" }, diff --git a/lua/plugins/dadbod.lua b/lua/plugins/dadbod.lua deleted file mode 100644 index 888e066..0000000 --- a/lua/plugins/dadbod.lua +++ /dev/null @@ -1,16 +0,0 @@ -return { - "kristijanhusak/vim-dadbod-ui", - dependencies = { - { "tpope/vim-dadbod", lazy = true }, - { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql", "sqloracle" }, lazy = true }, - }, - cmd = { - "DBUI", - "DBUIToggle", - "DBUIAddConnection", - "DBUIFindBuffer", - }, - init = function() - vim.g.db_ui_use_nerd_fonts = 1 - end, -} diff --git a/lua/plugins/debugging.lua b/lua/plugins/debugging.lua index 0479f28..434fef8 100644 --- a/lua/plugins/debugging.lua +++ b/lua/plugins/debugging.lua @@ -1,68 +1,86 @@ return { - "mfussenegger/nvim-dap", - dependencies = { - "rcarriga/nvim-dap-ui", - "nvim-neotest/nvim-nio", - }, + { + "mfussenegger/nvim-dap", + dependencies = { + "rcarriga/nvim-dap-ui", + "nvim-neotest/nvim-nio", + }, - config = function() - local dap, dapui = require("dap"), require("dapui") + config = function() + local dap, dapui = require("dap"), require("dapui") - require("dapui").setup() + require("dapui").setup() - dap.listeners.before.attach.dapui_config = function() - dapui.open() - end - dap.listeners.before.launch.dapui_config = function() - dapui.open() - end - dap.listeners.before.event_terminated.dapui_config = function() - dapui.close() - end - dap.listeners.before.event_exited.dapui_config = function() - dapui.close() - end + dap.listeners.before.attach.dapui_config = function() + dapui.open() + end + dap.listeners.before.launch.dapui_config = function() + dapui.open() + end + dap.listeners.before.event_terminated.dapui_config = function() + dapui.close() + end + dap.listeners.before.event_exited.dapui_config = function() + dapui.close() + end - dap.adapters.lldb = { - type = "executable", - command = "/usr/bin/lldb-vscode", - name = "lldb", - } + dap.adapters.lldb = { + type = "executable", + command = "/usr/bin/lldb-vscode", + name = "lldb", + } - dap.configurations.rust = { - { - name = "Launch", - type = "lldb", - request = "launch", - program = function() - return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") - end, - cwd = "${workspaceFolder}", - stopOnEntry = false, - args = {}, + dap.configurations.rust = { + { + name = "Launch", + type = "lldb", + request = "launch", + program = function() + return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") + end, + cwd = "${workspaceFolder}", + stopOnEntry = false, + args = {}, - initCommands = function() - -- Find out where to look for the pretty printer Python module - local rustc_sysroot = vim.fn.trim(vim.fn.system("rustc --print sysroot")) + initCommands = function() + -- Find out where to look for the pretty printer Python module + local rustc_sysroot = vim.fn.trim(vim.fn.system("rustc --print sysroot")) - local script_import = 'command script import "' - .. rustc_sysroot - .. '/lib/rustlib/etc/lldb_lookup.py"' - local commands_file = rustc_sysroot .. "/lib/rustlib/etc/lldb_commands" + local script_import = 'command script import "' + .. rustc_sysroot + .. '/lib/rustlib/etc/lldb_lookup.py"' + local commands_file = rustc_sysroot .. "/lib/rustlib/etc/lldb_commands" - local commands = {} - local file = io.open(commands_file, "r") - if file then - for line in file:lines() do - table.insert(commands, line) + local commands = {} + local file = io.open(commands_file, "r") + if file then + for line in file:lines() do + table.insert(commands, line) + end + file:close() end - file:close() - end - table.insert(commands, 1, script_import) + table.insert(commands, 1, script_import) - return commands - end, - }, - } - end, + return commands + end, + }, + } + end, + }, + { + "kristijanhusak/vim-dadbod-ui", + dependencies = { + { "tpope/vim-dadbod", lazy = true }, + { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql", "sqloracle" }, lazy = true }, + }, + cmd = { + "DBUI", + "DBUIToggle", + "DBUIAddConnection", + "DBUIFindBuffer", + }, + init = function() + vim.g.db_ui_use_nerd_fonts = 1 + end, + }, } diff --git a/lua/plugins/lsp-config.lua b/lua/plugins/lsp-config.lua index e1cc245..37a1587 100644 --- a/lua/plugins/lsp-config.lua +++ b/lua/plugins/lsp-config.lua @@ -21,8 +21,8 @@ return { "ts_ls", "clangd", "tailwindcss", - "gopls", - "hls", + "gopls", + "hls", }, }) end, @@ -45,8 +45,8 @@ return { "clangd", "clangd", "tailwindcss", - "gopls", - "hls", + "gopls", + "hls", } for _, lsp in ipairs(servers) do @@ -56,4 +56,44 @@ return { end end, }, + { + "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.prettier, + null_ls.builtins.formatting.markdownlint, + null_ls.builtins.formatting.sql_formatter, + null_ls.builtins.formatting.bibclean, + null_ls.builtins.formatting.gofumpt, + }, + }) + end, + }, + { + "luckasRanarison/tailwind-tools.nvim", + dependencies = { "nvim-treesitter/nvim-treesitter" }, + opts = {}, -- your configuration + }, + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + local configs = require("nvim-treesitter.configs") + configs.setup({ + sync_install = false, + + auto_install = true, + + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + indent = { enable = true }, + }) + end, + }, } diff --git a/lua/plugins/none-ls.lua b/lua/plugins/none-ls.lua deleted file mode 100644 index 86e439b..0000000 --- a/lua/plugins/none-ls.lua +++ /dev/null @@ -1,17 +0,0 @@ -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.prettier, - null_ls.builtins.formatting.markdownlint, - null_ls.builtins.formatting.sql_formatter, - null_ls.builtins.formatting.bibclean, - null_ls.builtins.formatting.gofumpt, - }, - }) - end, -} diff --git a/lua/plugins/rustaceanvim.lua b/lua/plugins/rustaceanvim.lua deleted file mode 100644 index 168e16e..0000000 --- a/lua/plugins/rustaceanvim.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "mrcjkb/rustaceanvim", - version = "^5", -- Recommended - lazy = false, -- This plugin is already lazy -} diff --git a/lua/plugins/tailwind-tools.lua b/lua/plugins/tailwind-tools.lua deleted file mode 100644 index eddbc7f..0000000 --- a/lua/plugins/tailwind-tools.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "luckasRanarison/tailwind-tools.nvim", - dependencies = { "nvim-treesitter/nvim-treesitter" }, - opts = {}, -- your configuration -} |
