From 78ba80622ad0b0bf3ddb402644c29073ae9e3975 Mon Sep 17 00:00:00 2001 From: Alex Muszynski Date: Tue, 16 Sep 2025 11:30:40 -0400 Subject: [PATCH] big changes --- .github/ISSUE_TEMPLATE/bug_report.md | 28 ---------------------- .github/pull_request_template.md | 8 ------- .github/workflows/stylua.yml | 21 ---------------- lua/custom/plugins/ast-grep.lua | 7 ------ lua/custom/plugins/conform.lua | 2 +- lua/custom/plugins/csv-view.lua | 22 ----------------- lua/custom/plugins/init.lua | 7 +----- lua/custom/plugins/lsp-config.lua | 36 ++++++++++++++++++++++++++-- lua/custom/plugins/markview.lua | 7 ++++++ lua/custom/plugins/neogen.lua | 4 ---- lua/custom/plugins/notify.lua | 7 ------ lua/custom/plugins/rainbow-csv.lua | 19 --------------- lua/custom/plugins/treesitter.lua | 1 + 13 files changed, 44 insertions(+), 125 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/pull_request_template.md delete mode 100644 .github/workflows/stylua.yml delete mode 100644 lua/custom/plugins/ast-grep.lua delete mode 100644 lua/custom/plugins/csv-view.lua create mode 100644 lua/custom/plugins/markview.lua delete mode 100644 lua/custom/plugins/neogen.lua delete mode 100644 lua/custom/plugins/notify.lua delete mode 100644 lua/custom/plugins/rainbow-csv.lua diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 2ad4d31..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - - - -## Describe the bug - - -## To Reproduce - -1. ... - -## Desktop - -- OS: -- Terminal: - -## Neovim Version - - -``` -``` diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index f401c9f..0000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,8 +0,0 @@ -*************************************************************************** -**NOTE** -Please verify that the `base repository` above has the intended destination! -Github by default opens Pull Requests against the parent of a forked repository. -If this is your personal fork and you didn't intend to open a PR for contribution -to the original project then adjust the `base repository` accordingly. -************************************************************************** - diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml deleted file mode 100644 index 75db6c3..0000000 --- a/.github/workflows/stylua.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Check Lua Formatting -name: Check Lua Formatting -on: pull_request_target - -jobs: - stylua-check: - if: github.repository == 'nvim-lua/kickstart.nvim' - name: Stylua Check - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Stylua Check - uses: JohnnyMorganz/stylua-action@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - version: latest - args: --check . - diff --git a/lua/custom/plugins/ast-grep.lua b/lua/custom/plugins/ast-grep.lua deleted file mode 100644 index 89711f5..0000000 --- a/lua/custom/plugins/ast-grep.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - 'ray-x/telescope-ast-grep.nvim', - dependencies = { - { 'nvim-lua/plenary.nvim' }, - { 'nvim-telescope/telescope.nvim' }, - }, -} diff --git a/lua/custom/plugins/conform.lua b/lua/custom/plugins/conform.lua index 86edc23..aa202f9 100644 --- a/lua/custom/plugins/conform.lua +++ b/lua/custom/plugins/conform.lua @@ -17,7 +17,7 @@ return { -- Autoformat -- Disable "format_on_save lsp_fallback" for languages that don't -- have a well standardized coding style. You can add additional -- languages here or re-enable it for the disabled ones. - local disable_filetypes = { c = true, cpp = true, typescript = true } + local disable_filetypes = { cpp = true, typescript = true } return { timeout_ms = 500, lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], diff --git a/lua/custom/plugins/csv-view.lua b/lua/custom/plugins/csv-view.lua deleted file mode 100644 index 3e27d40..0000000 --- a/lua/custom/plugins/csv-view.lua +++ /dev/null @@ -1,22 +0,0 @@ -return { - 'hat0uma/csvview.nvim', - ---@module "csvview" - ---@type CsvView.Options - opts = { - parser = { comments = { '#', '//' } }, - keymaps = { - -- Text objects for selecting fields - textobject_field_inner = { 'if', mode = { 'o', 'x' } }, - textobject_field_outer = { 'af', mode = { 'o', 'x' } }, - -- Excel-like navigation: - -- Use and to move horizontally between fields. - -- Use and to move vertically between rows and place the cursor at the end of the field. - -- Note: In terminals, you may need to enable CSI-u mode to use and . - jump_next_field_end = { '', mode = { 'n', 'v' } }, - jump_prev_field_end = { '', mode = { 'n', 'v' } }, - jump_next_row = { '', mode = { 'n', 'v' } }, - jump_prev_row = { '', mode = { 'n', 'v' } }, - }, - }, - cmd = { 'CsvViewEnable', 'CsvViewDisable', 'CsvViewToggle' }, -} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index b5b71d1..be0eb9d 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,9 +2,4 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return { - { - 'OXY2DEV/markview.nvim', - lazy = false, - }, -} +return {} diff --git a/lua/custom/plugins/lsp-config.lua b/lua/custom/plugins/lsp-config.lua index ee25efa..b9ea33c 100644 --- a/lua/custom/plugins/lsp-config.lua +++ b/lua/custom/plugins/lsp-config.lua @@ -154,10 +154,41 @@ return { -- LSP Configuration & Plugins -- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features. -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ + local lspconfig = require 'lspconfig' + local root_patterns = { 'CMakeLists.txt', '.git' } local servers = { - clangd = {}, + clangd = { + -- tell clangd where to find compile_commands.json + cmd = { + 'clangd', + '--background-index', + '--clang-tidy', + '--compile-commands-dir=build', -- <-- point at the build folder + }, + root_dir = lspconfig.util.root_pattern(unpack(root_patterns)), + -- clangd auto-detects filetypes c/cpp/etc. + }, + arduino_language_server = { + -- point at the binary (Mason puts it on your PATH) + cmd = { + 'arduino-language-server', + '-cli', + 'arduino-cli', + '-cli-config', + os.getenv 'HOME' .. '/.arduino15/arduino-cli.yaml', + '-fqbn', + 'arduino:avr:uno', -- <- replace with your board’s FQBN + '--verbose', + }, + filetypes = { 'arduino', 'ino', 'pde' }, + root_dir = function(fname) + return lspconfig.util.root_pattern('*.ino', '.git')(fname) or vim.loop.cwd() + end, + settings = {}, -- no extra settings for now + }, gopls = {}, pyrefly = {}, + --pyright = {}, rust_analyzer = {}, markdownlint = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -207,7 +238,8 @@ return { -- LSP Configuration & Plugins 'typescript-language-server', -- Python 'ruff', - 'pyright', + 'pyrefly', + --'pyright', -- C 'clangd', -- markdown diff --git a/lua/custom/plugins/markview.lua b/lua/custom/plugins/markview.lua new file mode 100644 index 0000000..1739c05 --- /dev/null +++ b/lua/custom/plugins/markview.lua @@ -0,0 +1,7 @@ +return { + { + 'OXY2DEV/markview.nvim', + lazy = false, + priority = 49, + }, +} diff --git a/lua/custom/plugins/neogen.lua b/lua/custom/plugins/neogen.lua deleted file mode 100644 index 206f52b..0000000 --- a/lua/custom/plugins/neogen.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - 'danymat/neogen', - config = true, -} diff --git a/lua/custom/plugins/notify.lua b/lua/custom/plugins/notify.lua deleted file mode 100644 index 822ef01..0000000 --- a/lua/custom/plugins/notify.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - -- 'rcarriga/nvim-notify', - -- event = 'VeryLazy', - -- opts = { - -- background_colour = '#000000', - -- }, -} diff --git a/lua/custom/plugins/rainbow-csv.lua b/lua/custom/plugins/rainbow-csv.lua deleted file mode 100644 index b4cf791..0000000 --- a/lua/custom/plugins/rainbow-csv.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - 'cameron-wags/rainbow_csv.nvim', - config = true, - ft = { - 'csv', - 'tsv', - 'csv_semicolon', - 'csv_whitespace', - 'csv_pipe', - 'rfc_csv', - 'rfc_semicolon', - }, - cmd = { - 'RainbowDelim', - 'RainbowDelimSimple', - 'RainbowDelimQuoted', - 'RainbowMultiDelim', - }, -} diff --git a/lua/custom/plugins/treesitter.lua b/lua/custom/plugins/treesitter.lua index 8135fd9..c0d7f8b 100644 --- a/lua/custom/plugins/treesitter.lua +++ b/lua/custom/plugins/treesitter.lua @@ -1,5 +1,6 @@ return { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', + dependencies = { 'OXY2DEV/markview.nvim' }, build = ':TSUpdate', opts = { ensure_installed = {