diff options
Diffstat (limited to '.config/nvim/after/plugin')
| -rw-r--r-- | .config/nvim/after/plugin/colors.lua | 8 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 75 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/lualine.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/rust_analyzer.lua | 6 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/telescope.lua | 25 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 39 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/xbufferline.lua | 12 | ||||
| -rw-r--r-- | .config/nvim/after/plugin/zenmode.lua | 9 | 
8 files changed, 0 insertions, 177 deletions
diff --git a/.config/nvim/after/plugin/colors.lua b/.config/nvim/after/plugin/colors.lua deleted file mode 100644 index 3126d84..0000000 --- a/.config/nvim/after/plugin/colors.lua +++ /dev/null @@ -1,8 +0,0 @@ -vim.g.nord_contrast = true -vim.g.nord_borders = false -vim.g.nord_disable_background = true -vim.g.nord_italic = true -vim.g.nord_uniform_diff_background = true -vim.g.nord_bold = true - -require('nord').set() diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua deleted file mode 100644 index 1da43a0..0000000 --- a/.config/nvim/after/plugin/lsp.lua +++ /dev/null @@ -1,75 +0,0 @@ -local lsp = require("lsp-zero") - -lsp.preset("recommended") - -lsp.ensure_installed({ -    "cssls", -    "dockerls", -    "eslint", -    "html", -    "jsonls", -    "lua_ls", -    "marksman", -    "phpactor", -    "rust_analyzer", -    "tailwindcss", -}) - --- Fix Undefined global "vim" -lsp.configure("lua_ls", { -    settings = { -        Lua = { -            diagnostics = { -                globals = { "vim" } -            } -        } -    } -}) - - -local cmp = require("cmp") -local cmp_select = {behavior = cmp.SelectBehavior.Select} -local cmp_mappings = lsp.defaults.cmp_mappings({ -    ["<C-p>"] = cmp.mapping.select_prev_item(cmp_select), -    ["<C-n>"] = cmp.mapping.select_next_item(cmp_select), -    ["<C-y>"] = cmp.mapping.confirm({ select = true }), -    ["<C-Space>"] = cmp.mapping.complete(), -}) - -cmp_mappings["<Tab>"] = nil -cmp_mappings["<S-Tab>"] = nil - -lsp.setup_nvim_cmp({ -    mapping = cmp_mappings -}) - -lsp.set_preferences({ -    suggest_lsp_servers = false, -    sign_icons = { -        error = "E", -        warn = "W", -        hint = "H", -        info = "I" -    } -}) - -lsp.on_attach(function(client, bufnr) -    local opts = {buffer = bufnr, remap = false} - -    vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) -    vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts) -    vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts) -    vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts) -    vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts) -    vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts) -    vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts) -    vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts) -    vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts) -    vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts) -end) - -lsp.setup() - -vim.diagnostic.config({ -    virtual_text = true -}) diff --git a/.config/nvim/after/plugin/lualine.lua b/.config/nvim/after/plugin/lualine.lua deleted file mode 100644 index 43b571c..0000000 --- a/.config/nvim/after/plugin/lualine.lua +++ /dev/null @@ -1,3 +0,0 @@ -require("lualine").setup({ -    theme = "nord" -}) diff --git a/.config/nvim/after/plugin/rust_analyzer.lua b/.config/nvim/after/plugin/rust_analyzer.lua deleted file mode 100644 index f232d1d..0000000 --- a/.config/nvim/after/plugin/rust_analyzer.lua +++ /dev/null @@ -1,6 +0,0 @@ -require("lspconfig").rust_analyzer.setup({ -    cmd = { -        "rustup", "run", "stable", "rust-analyzer" -    } -}) - diff --git a/.config/nvim/after/plugin/telescope.lua b/.config/nvim/after/plugin/telescope.lua deleted file mode 100644 index 28acc9d..0000000 --- a/.config/nvim/after/plugin/telescope.lua +++ /dev/null @@ -1,25 +0,0 @@ -local actions = require("telescope.actions") - -require("telescope").setup({ -    defaults = { -        mappings = { -            i = { -                -- Pressing escape will close finder instead of going into normal mode. -                ["<esc>"] = actions.close, -            } -        } -    } -}) - -local builtin = require("telescope.builtin") - -vim.keymap.set("n", "<leader>ff", builtin.find_files, {}) -vim.keymap.set("n", "<leader>fg", builtin.live_grep, {}) -vim.keymap.set("n", "<leader>fb", builtin.buffers, {}) -vim.keymap.set("n", "<leader>fh", builtin.help_tags, {}) -vim.keymap.set("n", "<leader>ss", builtin.spell_suggest, {}) -vim.keymap.set("n", "<leader>fs", function() -    builtin.grep_string({ search = vim.fn.input("Grep > ") }) -end) -vim.keymap.set("n", "<leader>fl", builtin.lsp_document_symbols, {}) - diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua deleted file mode 100644 index a70b39a..0000000 --- a/.config/nvim/after/plugin/treesitter.lua +++ /dev/null @@ -1,39 +0,0 @@ -require("nvim-treesitter.configs").setup { -    -- A list of parser names, or "all" -    ensure_installed = { -        "bash", -        "c", -        "css", -        "dockerfile", -        "gitignore", -        "html", -        "javascript", -        "json", -        "lua", -        "markdown", -        "php", -        "rust", -        "toml", -        "typescript", -        "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, - -    highlight = { -        -- `false` will disable the whole extension -        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 = true, -    }, -} - diff --git a/.config/nvim/after/plugin/xbufferline.lua b/.config/nvim/after/plugin/xbufferline.lua deleted file mode 100644 index 3994b79..0000000 --- a/.config/nvim/after/plugin/xbufferline.lua +++ /dev/null @@ -1,12 +0,0 @@ --- This file is intentionally call xbufferline.lua so that it loads last. --- This is so we can get access to the loaded and configured nord color scheme. -local highlights = require("nord").bufferline.highlights() - -require("bufferline").setup({ -    options = { -        show_close_icon = false, -        show_buffer_close_icons = false, -    }, -    highlights = highlights -}) - diff --git a/.config/nvim/after/plugin/zenmode.lua b/.config/nvim/after/plugin/zenmode.lua deleted file mode 100644 index a755b01..0000000 --- a/.config/nvim/after/plugin/zenmode.lua +++ /dev/null @@ -1,9 +0,0 @@ -require("zen-mode").setup({ -    width = 512, -    plugins = { -        options = { -            number = false, -            relativenumber = false -        } -    } -})  | 
