From 9e1bc68a323707c54fa16ff18a8b5bc0ed28c427 Mon Sep 17 00:00:00 2001 From: krolxon Date: Wed, 7 Jan 2026 23:05:50 +0530 Subject: add neovim configuration --- .config/nvim/lua/plugins/colorscheme.lua | 12 +++++++ .config/nvim/lua/plugins/lsp.lua | 26 +++++++++++++++ .config/nvim/lua/plugins/nvim-tree.lua | 38 ++++++++++++++++++++++ .config/nvim/lua/plugins/obsidian.lua | 54 ++++++++++++++++++++++++++++++++ .config/nvim/lua/plugins/platformio.lua | 6 ++++ .config/nvim/lua/plugins/snacks.lua | 8 +++++ 6 files changed, 144 insertions(+) create mode 100644 .config/nvim/lua/plugins/colorscheme.lua create mode 100644 .config/nvim/lua/plugins/lsp.lua create mode 100644 .config/nvim/lua/plugins/nvim-tree.lua create mode 100644 .config/nvim/lua/plugins/obsidian.lua create mode 100644 .config/nvim/lua/plugins/platformio.lua create mode 100644 .config/nvim/lua/plugins/snacks.lua (limited to '.config/nvim/lua/plugins') diff --git a/.config/nvim/lua/plugins/colorscheme.lua b/.config/nvim/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..ebdab3a --- /dev/null +++ b/.config/nvim/lua/plugins/colorscheme.lua @@ -0,0 +1,12 @@ +return { + { + "folke/tokyonight.nvim", + opts = { + transparent = true, + styles = { + sidebars = "transparent", + floats = "transparent", + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua new file mode 100644 index 0000000..145182e --- /dev/null +++ b/.config/nvim/lua/plugins/lsp.lua @@ -0,0 +1,26 @@ +return { + { + "neovim/nvim-lspconfig", + opts = function(_, opts) + -- Add your desired LSP server here + opts.servers.arduino_language_server = { + cmd = { + "arduino-language-server", + "-clangd", + "/usr/bin/clangd", + "-cli", + "/usr/bin/arduino-cli", + "-cli-config", + "/home/krolyxon/.arduino15/arduino-cli.yaml", + "-fqbn", + "arduino:avr:uno", + }, + } -- Example: Python + + opts.servers.pyright = {} + opts.servers.clangd = {} + + -- local servers = { "cssls", "jdtls", "slint_lsp", "pyright", "marksman", "eslint", "tailwindcss", "phpactor", "gopls", "clangd", "arduino_language_server" } + end, + }, +} diff --git a/.config/nvim/lua/plugins/nvim-tree.lua b/.config/nvim/lua/plugins/nvim-tree.lua new file mode 100644 index 0000000..aa422bf --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-tree.lua @@ -0,0 +1,38 @@ +return { + "nvim-tree/nvim-tree.lua", + cmd = { "NvimTreeToggle", "NvimTreeFocus" }, + opts = { + filters = { dotfiles = false }, + disable_netrw = true, + hijack_cursor = true, + sync_root_with_cwd = true, + update_focused_file = { + enable = true, + update_root = false, + }, + view = { + width = 30, + preserve_window_proportions = true, + }, + renderer = { + root_folder_label = false, + highlight_git = true, + indent_markers = { enable = true }, + icons = { + glyphs = { + default = "󰈚", + folder = { + default = "", + empty = "", + empty_open = "", + open = "", + symlink = "", + }, + git = { unmerged = "" }, + }, + }, + }, + + } +} + diff --git a/.config/nvim/lua/plugins/obsidian.lua b/.config/nvim/lua/plugins/obsidian.lua new file mode 100644 index 0000000..bef0428 --- /dev/null +++ b/.config/nvim/lua/plugins/obsidian.lua @@ -0,0 +1,54 @@ +return { + "epwalsh/obsidian.nvim", + version = "*", -- recommended, use latest release instead of latest commit + lazy = false, + -- ft = "markdown", + -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault: + -- event = { + -- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'. + -- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md" + -- -- refer to `:h file-pattern` for more examples + -- "BufReadPre path/to/my-vault/*.md", + -- "BufNewFile path/to/my-vault/*.md", + -- }, + dependencies = { + -- Required. + "nvim-lua/plenary.nvim", + + -- see below for full list of optional dependencies 👇 + }, + opts = { + workspaces = { + { + name = "Brain", + path = "~/dox/brain", + overrides = { + disable_frontmatter = true, + } + }, + { + name = "no-vault", + path = function() + -- alternatively use the CWD: + -- return assert(vim.fn.getcwd()) + return assert(vim.fs.dirname(vim.api.nvim_buf_get_name(0))) + end, + overrides = { + notes_subdir = vim.NIL, -- have to use 'vim.NIL' instead of 'nil' + new_notes_location = "current_dir", + templates = { + folder = vim.NIL, + }, + disable_frontmatter = true, + }, + }, + }, + + templates = { + folder = "99 - Meta/Templates", + date_format = "%Y-%m-%d-%a", + time_format = "%H:%M", + }, + -- see below for full list of options 👇 + }, +} diff --git a/.config/nvim/lua/plugins/platformio.lua b/.config/nvim/lua/plugins/platformio.lua new file mode 100644 index 0000000..760de07 --- /dev/null +++ b/.config/nvim/lua/plugins/platformio.lua @@ -0,0 +1,6 @@ +return { + -- cmd = { "PIO" }, + lazy = false, + "sbatin/platformio.nvim", + dependencies = { "numToStr/FTerm.nvim" }, +} diff --git a/.config/nvim/lua/plugins/snacks.lua b/.config/nvim/lua/plugins/snacks.lua new file mode 100644 index 0000000..960b2a3 --- /dev/null +++ b/.config/nvim/lua/plugins/snacks.lua @@ -0,0 +1,8 @@ +return { + { + "folke/snacks.nvim", + opts = { + explorer = {enabled = false}, + } + }, +} -- cgit v1.2.3