diff options
| author | seth <[email protected]> | 2024-04-09 19:49:37 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-09 19:49:37 -0400 |
| commit | 16a1126200932407f9f4562fba961b514a1c91d1 (patch) | |
| tree | 3ab1b6f1035436a644465757c38c17d7943cea11 /config/plugins | |
| parent | 43dbb8549d0ecc6dd62a5fd5f9b63beacbfc487b (diff) | |
auto import all files, cleanup + add a few things
Diffstat (limited to 'config/plugins')
| -rw-r--r-- | config/plugins/bufferline.lua | 20 | ||||
| -rw-r--r-- | config/plugins/catppuccin.lua | 29 | ||||
| -rw-r--r-- | config/plugins/cmp.lua | 42 | ||||
| -rw-r--r-- | config/plugins/dressing.lua | 1 | ||||
| -rw-r--r-- | config/plugins/efmls.lua | 59 | ||||
| -rw-r--r-- | config/plugins/fidget.lua | 1 | ||||
| -rw-r--r-- | config/plugins/flash.lua | 1 | ||||
| -rw-r--r-- | config/plugins/gitsigns.lua | 1 | ||||
| -rw-r--r-- | config/plugins/ibl.lua | 22 | ||||
| -rw-r--r-- | config/plugins/init.lua | 16 | ||||
| -rw-r--r-- | config/plugins/lsp-format.lua | 1 | ||||
| -rw-r--r-- | config/plugins/lsp.lua | 93 | ||||
| -rw-r--r-- | config/plugins/lualine.lua | 6 | ||||
| -rw-r--r-- | config/plugins/mini.lua | 29 | ||||
| -rw-r--r-- | config/plugins/telescope.lua | 1 | ||||
| -rw-r--r-- | config/plugins/treesitter.lua | 11 | ||||
| -rw-r--r-- | config/plugins/trouble.lua | 1 | ||||
| -rw-r--r-- | config/plugins/which-key.lua | 5 |
18 files changed, 0 insertions, 339 deletions
diff --git a/config/plugins/bufferline.lua b/config/plugins/bufferline.lua deleted file mode 100644 index a74dfa2..0000000 --- a/config/plugins/bufferline.lua +++ /dev/null @@ -1,20 +0,0 @@ -require("bufferline").setup({ - options = { - always_show_bufferline = false, - - diagnostics = "nvim_lsp", - - mode = "buffers", - numbers = "ordinal", - separator_style = "slant", - - offsets = { - { - filetype = "neo-tree", - text = "neo-tree", - highlight = "Directory", - text_align = "left", - }, - }, - }, -}) diff --git a/config/plugins/catppuccin.lua b/config/plugins/catppuccin.lua deleted file mode 100644 index 6f8c367..0000000 --- a/config/plugins/catppuccin.lua +++ /dev/null @@ -1,29 +0,0 @@ -local compile_path = vim.fn.stdpath("cache") .. "/catppuccin-nvim" -vim.fn.mkdir(compile_path, "p") -vim.opt.runtimepath:append(compile_path) - -require("catppuccin").setup({ - compile_path = compile_path, - flavour = "mocha", - integrations = { - cmp = true, - flash = true, - gitsigns = true, - indent_blankline = { - enabled = true, - }, - lsp_trouble = true, - native_lsp = { - enabled = true, - }, - neotree = true, - treesitter_context = true, - treesitter = true, - telescope = true, - which_key = true, - }, - - no_italic = true, -}) - -vim.cmd.colorscheme("catppuccin") diff --git a/config/plugins/cmp.lua b/config/plugins/cmp.lua deleted file mode 100644 index eee5eb1..0000000 --- a/config/plugins/cmp.lua +++ /dev/null @@ -1,42 +0,0 @@ -local cmp = require("cmp") - -cmp.setup({ - completion = { - compleopt = "menu,menuone,insert", - }, - - snippet = { - expand = function(args) - require("luasnip").lsp_expand(args.body) - end, - }, - - mapping = { - ["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), - ["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), - ["<C-b>"] = cmp.mapping.scroll_docs(-4), - ["<C-f>"] = cmp.mapping.scroll_docs(4), - ["<C-Space>"] = cmp.mapping.complete(), - ["<C-e>"] = cmp.mapping.abort(), - ["<CR>"] = cmp.mapping({ - i = function(fallback) - if cmp.visible() and cmp.get_active_entry() then - cmp.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = false }) - else - fallback() - end - end, - - s = cmp.mapping.confirm({ select = true }), - c = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true }), - }), - }, - - sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, - { name = "async_path" }, - { name = "buffer" }, - { name = "rg" }, - }), -}) diff --git a/config/plugins/dressing.lua b/config/plugins/dressing.lua deleted file mode 100644 index a4fcb44..0000000 --- a/config/plugins/dressing.lua +++ /dev/null @@ -1 +0,0 @@ -require("dressing") diff --git a/config/plugins/efmls.lua b/config/plugins/efmls.lua deleted file mode 100644 index 979cafb..0000000 --- a/config/plugins/efmls.lua +++ /dev/null @@ -1,59 +0,0 @@ -local alex = require("efmls-configs.linters.alex") -local actionlint = require("efmls-configs.linters.actionlint") -local beautysh = require("efmls-configs.formatters.beautysh") -local codespell = require("efmls-configs.linters.codespell") -local fish_indent = require("efmls-configs.formatters.fish_indent") -local prettier = require("efmls-configs.formatters.prettier") -local prettier_eslint = require("efmls-configs.formatters.prettier_eslint") -local shellcheck = require("efmls-configs.linters.shellcheck") -local statix = require("efmls-configs.linters.statix") -local stylua = require("efmls-configs.formatters.stylua") - -local languages = { - all = { alex, codespell }, - - bash = { - beautysh, - shellcheck, - }, - - css = { prettier }, - - fish = { fish_indent }, - - html = { prettier }, - - javascript = { prettier_eslint }, - - json = { prettier }, - - lua = { stylua }, - - nix = { statix }, - - sass = { prettier }, - - scss = { prettier }, - - sh = { beautysh, shellcheck }, - - typescript = { prettier_eslint }, - - yaml = { prettier, actionlint }, - - zsh = { beautysh }, -} - -return { - filetypes = vim.tbl_keys(languages), - - settings = { - rootMarkers = { ".git/" }, - languages = languages, - }, - - init_options = { - documentFormatting = true, - documentRangeFormatting = true, - }, -} diff --git a/config/plugins/fidget.lua b/config/plugins/fidget.lua deleted file mode 100644 index 4f1ab35..0000000 --- a/config/plugins/fidget.lua +++ /dev/null @@ -1 +0,0 @@ -require("fidget").setup() diff --git a/config/plugins/flash.lua b/config/plugins/flash.lua deleted file mode 100644 index 9f9c773..0000000 --- a/config/plugins/flash.lua +++ /dev/null @@ -1 +0,0 @@ -require("flash").setup() diff --git a/config/plugins/gitsigns.lua b/config/plugins/gitsigns.lua deleted file mode 100644 index d16d238..0000000 --- a/config/plugins/gitsigns.lua +++ /dev/null @@ -1 +0,0 @@ -require("gitsigns").setup() diff --git a/config/plugins/ibl.lua b/config/plugins/ibl.lua deleted file mode 100644 index b63139b..0000000 --- a/config/plugins/ibl.lua +++ /dev/null @@ -1,22 +0,0 @@ -require("ibl").setup({ - exclude = { - filetypes = { - "help", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - }, - }, - - indent = { - char = "│", - tab_char = "│", - }, - - scope = { - enabled = false, - }, -}) diff --git a/config/plugins/init.lua b/config/plugins/init.lua deleted file mode 100644 index 5610f2d..0000000 --- a/config/plugins/init.lua +++ /dev/null @@ -1,16 +0,0 @@ -require("getchoo.plugins.bufferline") -require("getchoo.plugins.catppuccin") -require("getchoo.plugins.cmp") -require("getchoo.plugins.dressing") -require("getchoo.plugins.fidget") -require("getchoo.plugins.flash") -require("getchoo.plugins.gitsigns") -require("getchoo.plugins.ibl") -require("getchoo.plugins.lsp-format") -require("getchoo.plugins.lsp") -require("getchoo.plugins.lualine") -require("getchoo.plugins.mini") -require("getchoo.plugins.telescope") -require("getchoo.plugins.treesitter") -require("getchoo.plugins.trouble") -require("getchoo.plugins.which-key") diff --git a/config/plugins/lsp-format.lua b/config/plugins/lsp-format.lua deleted file mode 100644 index 6b57642..0000000 --- a/config/plugins/lsp-format.lua +++ /dev/null @@ -1 +0,0 @@ -require("lsp-format").setup() diff --git a/config/plugins/lsp.lua b/config/plugins/lsp.lua deleted file mode 100644 index 9492df1..0000000 --- a/config/plugins/lsp.lua +++ /dev/null @@ -1,93 +0,0 @@ -local lsp_servers = { - bashls = { - binary = "bash-language-server", - }, - - clangd = {}, - - eslint = {}, - - efm = { - binary = "true", - extraOptions = require("getchoo.plugins.efmls"), - }, - - lua_ls = { - binary = "lua-language-server", - extraOptions = { - settings = { - Lua = { - runtime = { version = "LuaJIT" }, - diagnostics = { globals = "vim" }, - workspace = { library = vim.api.nvim_get_runtime_file("", true) }, - }, - }, - }, - }, - - nil_ls = { - binary = "nil", - extraOptions = { - settings = { - ["nil"] = { - formatting = { command = { "alejandra" } }, - }, - }, - }, - }, - - pyright = {}, - ruff_lsp = { - binary = "ruff-lsp", - extraOptions = { - on_attach = function(client, _) - require("lsp-format").on_attach(client) - -- pyright should handle this - client.server_capabilities.hoverProvider = false - end, - }, - }, - - rust_analyzer = { - binary = "rust-analyzer", - extraOptions = { - settings = { - checkOnSave = { command = "clippy" }, - }, - }, - }, - - denols = { - binary = "deno", - }, - - tsserver = { - binary = "typescript-language-server", - }, -} - -local caps = vim.tbl_deep_extend( - "force", - vim.lsp.protocol.make_client_capabilities(), - require("cmp_nvim_lsp").default_capabilities(), - -- for nil_ls - { workspace = { didChangeWatchedFiles = { dynamicRegistration = true } } } -) - -local setup = { - on_attach = function(client, _) - require("lsp-format").on_attach(client) - end, - - capabilities = caps, -} - -for server, config in pairs(lsp_servers) do - local binary = config.binary or server - - local options = (config.extraOptions == nil) and setup or vim.tbl_extend("keep", config.extraOptions, setup) - - if vim.fn.executable(binary) == 1 then - require("lspconfig")[server].setup(options) - end -end diff --git a/config/plugins/lualine.lua b/config/plugins/lualine.lua deleted file mode 100644 index 2727d75..0000000 --- a/config/plugins/lualine.lua +++ /dev/null @@ -1,6 +0,0 @@ -require("lualine").setup({ - options = { - theme = "catppuccin", - }, - extensions = { "neo-tree", "trouble" }, -}) diff --git a/config/plugins/mini.lua b/config/plugins/mini.lua deleted file mode 100644 index e2b3b46..0000000 --- a/config/plugins/mini.lua +++ /dev/null @@ -1,29 +0,0 @@ -require("mini.comment").setup({ - options = { - custom_commentstring = function() - return require("ts_context_commentstring.internal").calculate_commentstring() - or vim.bo.context_commentstring - end, - }, -}) - -require("mini.files").setup() -require("mini.pairs").setup() -require("mini.indentscope").setup({ - options = { try_as_border = true }, -}) - -vim.api.nvim_create_autocmd("FileType", { - pattern = { - "help", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - }, - callback = function() - vim.b.miniindentscope_disable = true - end, -}) diff --git a/config/plugins/telescope.lua b/config/plugins/telescope.lua deleted file mode 100644 index be3366b..0000000 --- a/config/plugins/telescope.lua +++ /dev/null @@ -1 +0,0 @@ -require("telescope").setup() diff --git a/config/plugins/treesitter.lua b/config/plugins/treesitter.lua deleted file mode 100644 index e9b88f2..0000000 --- a/config/plugins/treesitter.lua +++ /dev/null @@ -1,11 +0,0 @@ -require("nvim-treesitter.configs").setup({ - auto_install = false, - - highlight = { enable = true }, - indent = { enable = true }, - - -- nvim-ts-autotag - autotag = { enable = true }, -}) - -vim.g.skip_ts_context_commentstring_module = true diff --git a/config/plugins/trouble.lua b/config/plugins/trouble.lua deleted file mode 100644 index 38ef1e9..0000000 --- a/config/plugins/trouble.lua +++ /dev/null @@ -1 +0,0 @@ -require("trouble").setup() diff --git a/config/plugins/which-key.lua b/config/plugins/which-key.lua deleted file mode 100644 index 32ca2ff..0000000 --- a/config/plugins/which-key.lua +++ /dev/null @@ -1,5 +0,0 @@ -require("which-key").setup({ - plugins = { - spelling = { enable = true }, - }, -}) |
