Compare commits

...

41 Commits

Author SHA1 Message Date
b8e5b873b8 Merge branch 'main' of github.com:eRgo35/neovim 2024-12-31 13:16:54 +01:00
811adf796f feat: format on save 2024-12-31 13:04:02 +01:00
Algren-Michael Pauna
fd56fd515e docs: updated chadrc.lua reference to nvconfig.lua to point to v3.0 instead of v2.5 2024-12-31 13:04:00 +01:00
tux
dcfe42861c fix path for base64 plugin 2024-12-31 13:04:00 +01:00
223ebb264b feat: github copilot intergration 2024-12-31 12:55:08 +01:00
2eb6e7ec6f feat: rust plugins 2024-12-31 12:54:45 +01:00
ba342d13e5 feat: misc programming plugins 2024-12-31 12:54:23 +01:00
7c50a16fd8 feat: format on save 2024-12-31 12:46:58 +01:00
78fa68bde1 feat: theme change to rosepine 2024-12-31 12:45:40 +01:00
456cdac20d feat: ignored lazy-lock.json 2024-12-31 12:44:44 +01:00
2207b62d5e chore: lazy-lock fun 2024-10-26 14:08:22 +02:00
9bcb327f44 fix: removed lazy-lock from tracking 2024-10-26 14:06:16 +02:00
5391f13618 chore: packages bump 2024-10-26 13:56:18 +02:00
Sidhanth Rathod
d0c602f5f1 Merge pull request #50 from algren123/docs/update-nvconfig-reference
docs: updated chadrc.lua reference to nvconfig.lua to point to v3.0
2024-10-05 17:33:03 +05:30
Algren-Michael Pauna
6db16815ac docs: updated chadrc.lua reference to nvconfig.lua to point to v3.0 instead of v2.5 2024-10-05 12:50:23 +01:00
Sidhanth Rathod
76da790a27 Merge pull request #47 from 0xTux/main
fix path for base64 plugin
2024-10-02 05:48:51 +05:30
tux
0eb7d42b30 fix path for base64 plugin 2024-10-02 05:38:25 +05:30
Sidhanth Rathod
59f23d053a Merge pull request #44 from TimJ0212/main
Change LSP example to the not deprecated ts_ls (fixes #43)
2024-09-12 10:41:37 +05:30
Tim Jungk
a4c2bbf43c Change LSP example to the not deprecated ts_ls 2024-09-12 06:49:21 +02:00
Sidhanth Rathod
cb60352466 Update chadrc.lua 2024-09-07 14:34:33 +05:30
Sidhanth Rathod
3e1667ef3c Update README.md 2024-08-11 19:36:21 +05:30
siduck
935ea570af repace vim.loop with vim.uv 2024-08-08 05:49:06 +05:30
siduck
0c7d9cefa9 no need to wrap options module in config func 2024-08-07 19:26:13 +05:30
Sidhanth Rathod
36b143653a Create README.md 2024-08-04 09:09:05 +05:30
Sidhanth Rathod
c4a05091b6 Update lspconfig.lua 2024-07-30 16:12:45 +05:30
siduck
8f4b09ef03 rm mason.ensure_installed & clean some conf 2024-07-29 05:36:46 +05:30
Sidhanth Rathod
41c5b46733 update nvconfig url 2024-06-23 19:48:36 +05:30
Sidhanth Rathod
aad624221a Add UNLICENSE 2024-04-15 07:50:17 +05:30
Sidhanth Rathod
2730bbd210 Delete README.md 2024-04-15 06:44:23 +05:30
Sidhanth Rathod
3da16ca21b Delete LICENSE
as it is useless
2024-04-15 06:44:03 +05:30
Sidhanth Rathod
d801a059ef Merge pull request #12 from sullrich84/patch-1
add missing comma
2024-03-26 15:17:59 +05:30
Sebastian Ullrich
260c70c958 add missing comma 2024-03-26 10:44:58 +01:00
Sidhanth Rathod
6a612b80f8 Merge pull request #11 from segyges/fix-init.lua
Update init.lua
2024-03-25 06:49:07 +05:30
segyges
330861bd93 Update init.lua
Fix typos in init.lua
2024-03-24 11:45:42 -05:00
Sidhanth Rathod
813f95e06e add note about nvconfig in chadrc 2024-03-23 11:49:07 +05:30
Sidhanth Rathod
94dc47f8bb add note in plugins file 2024-03-22 18:11:04 +05:30
siduck
70f66adb59 rm useless mapping 2024-03-18 06:41:03 +05:30
siduck
726248c2f3 add nvchad_types & .stylua.toml 2024-03-18 06:34:01 +05:30
siduck
9d47133ba1 update nvchad branch 2024-03-09 21:36:02 +05:30
siduck
aa13916e94 add starter config files 2024-03-09 21:33:44 +05:30
Sidhanth Rathod
45a1b2c9a8 Initial commit 2024-03-09 21:32:32 +05:30
15 changed files with 64 additions and 426 deletions

View File

@@ -1,4 +1,4 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/" vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " " vim.g.mapleader = " "
-- bootstrap lazy and all plugins -- bootstrap lazy and all plugins

View File

@@ -1,37 +0,0 @@
{
"LuaSnip": { "branch": "master", "commit": "e808bee352d1a6fcf902ca1a71cee76e60e24071" },
"NvChad": { "branch": "v2.5", "commit": "b83a949d9e883b6ab98070f224535f1018174a5d" },
"base46": { "branch": "v2.5", "commit": "d5a768e9a8849a36c6cfc0c7134b05cb7584c7af" },
"better-escape.nvim": { "branch": "master", "commit": "bb197e51a91a635deb88630813c3bfc284413697" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"conform.nvim": { "branch": "master", "commit": "40d4e98fcc3e6f485f0e8924c63734bc7e305967" },
"crates.nvim": { "branch": "main", "commit": "8bf8358ee326d5d8c11dcd7ac0bcc9ff97dbc785" },
"friendly-snippets": { "branch": "main", "commit": "00ba9dd3df89509f95437b8d595553707c46d5ea" },
"gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" },
"html5.vim": { "branch": "master", "commit": "485f2cd62162c81e56d8604b4c630f0b5ef69d1f" },
"indent-blankline.nvim": { "branch": "master", "commit": "2e57e1bbda970317dce4b7878ccf9a831dc7067d" },
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"menu": { "branch": "main", "commit": "205b3de60bbd1dfa73fd12b04530743cd0e70b22" },
"minty": { "branch": "main", "commit": "8809b2c7c2edbeb3fa9c3b05bd2e89934d54f526" },
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-lspconfig": { "branch": "master", "commit": "3f9fe72100b5f8ca8da00e54ab70707647c822b3" },
"nvim-tree.lua": { "branch": "master", "commit": "c9104a5d079db5a158c9562c54689df27d52dccc" },
"nvim-treesitter": { "branch": "master", "commit": "45386764cc9535200d2288cab929c5093d33660e" },
"nvim-web-devicons": { "branch": "master", "commit": "6b53401918a9033a41159d012160c5fb5eb249ae" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
"telescope.nvim": { "branch": "master", "commit": "eae0d8fbde590b0eaa2f9481948cd6fd7dd21656" },
"ui": { "branch": "v3.0", "commit": "25868b16b64cb842a28dd9ae002fa6858284bef8" },
"vim-javascript": { "branch": "master", "commit": "c470ce1399a544fe587eab950f571c83cccfbbdc" },
"vim-svelte": { "branch": "main", "commit": "0e93ec53c3667753237282926fec626785622c1c" },
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" },
"volt": { "branch": "main", "commit": "ce1e55d52d86e33f340a20b45701b434cc684c15" },
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" },
"zoxide.vim": { "branch": "master", "commit": "b1e70b6fc1682a83929aee63680d2b43456fe9a5" }
}

View File

@@ -1,36 +0,0 @@
-- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/NvChad/blob/v2.5/lua/nvconfig.lua
---@type ChadrcConfig
local M = {}
M.ui = {
theme = "gruvbox",
theme_toggle = { "gruvbox", "everforest_light" },
nvdash = {
load_on_startup = true,
}
-- hl_override = {
-- Comment = { italic = true },
-- ["@comment"] = { italic = true },
-- },
}
M.nvimtree = {
git = {
enable = true,
},
renderer = {
highlight_git = true,
icons = {
show = {
git = true,
},
},
},
}
return M

View File

@@ -1,15 +0,0 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" },
},
-- format_on_save = {
-- -- These options will be passed to conform.format()
-- timeout_ms = 500,
-- lsp_fallback = true,
-- },
}
require("conform").setup(options)

View File

@@ -1,47 +0,0 @@
return {
defaults = { lazy = true },
install = { colorscheme = { "nvchad" } },
ui = {
icons = {
ft = "",
lazy = "󰂠 ",
loaded = "",
not_loaded = "",
},
},
performance = {
rtp = {
disabled_plugins = {
"2html_plugin",
"tohtml",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"matchit",
"tar",
"tarPlugin",
"rrhelper",
"spellfile_plugin",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
"tutor",
"rplugin",
"syntax",
"synmenu",
"optwin",
"compiler",
"bugreport",
"ftplugin",
},
},
},
}

View File

@@ -1,47 +0,0 @@
-- EXAMPLE
local on_attach = require("nvchad.configs.lspconfig").on_attach
local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
local servers = { "html", "cssls", "tsserver", "clangd" }
-- lsps with default config
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
}
end
lspconfig.svelte.setup {}
lspconfig.clangd.setup {
on_attach = function (client, bufnr)
client.server_capabilities.signatureHelpProvider = false
on_attach(client, bufnr)
end,
capabilities = capabilities,
}
lspconfig.rust_analyzer.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = {"rust"},
-- root_dir = util.root_pattern("Cargo.toml"),
settings = {
['rust_analyzer'] = {
cargo = {
allFeatures = true,
},
},
},
})
-- typescript
lspconfig.tsserver.setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
}

View File

@@ -1,25 +0,0 @@
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
local null_ls = require("null-ls")
local opts = {
sources = {
null_ls.builtins.formatting.clang_format,
},
on_attach = function (client, bufnr)
if client.supports_method("textDocument/formatting") then
vim.api.nvim_clear_autocmds({
group = augroup,
buffer = bufnr,
})
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
buffer = bufnr,
callback = function()
vim.lsp.buf.format({ bufnr = bufnr })
end,
})
end
end,
}
return opts

View File

@@ -1,15 +0,0 @@
require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
map("n", "<C-h>", "<cmd>TmuxNavigateLeft<CR>", { desc = "window left" })
map("n", "<C-l>", "<cmd>TmuxNavigateRight<CR>", { desc = "window up" })
map("n", "<C-j>", "<cmd>TmuxNavigateDown<CR>", { desc = "window up" })
map("n", "<C-k>", "<cmd>TmuxNavigateUp<CR>", { desc = "window up" })
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")

View File

@@ -1,6 +0,0 @@
require "nvchad.options"
-- add yours here!
-- local o = vim.o
-- o.cursorlineopt ='both' -- to enable cursorline!

View File

@@ -1,164 +0,0 @@
return {
{
"christoomey/vim-tmux-navigator",
lazy = false,
},
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
config = function()
require "configs.conform"
end,
},
{
"neovim/nvim-lspconfig",
config = function()
require("nvchad.configs.lspconfig").defaults()
require "configs.lspconfig"
end,
},
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
-- lua
"lua-language-server",
"stylua",
-- web dev
"html-lsp",
"css-lsp",
"prettier",
"typescript-language-server",
"deno",
-- rusty rust
"rust-analyzer",
-- c/c++
"clangd",
"clang-format",
"codelldb",
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"vimdoc",
"html",
"css",
"javascript",
"typescript",
"tsx",
"c",
"markdown",
"markdown_inline",
},
indent = {
enable = true,
},
},
},
{ "nvim-neotest/nvim-nio" },
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
dependencies = "mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
local dapui = require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.after.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.after.event_exited["dapui_config"] = function()
dapui.close()
end
end
},
{
"jay-babu/mason-nvim-dap.nvim",
event = "VeryLazy",
dependencies = {
"williamboman/mason.nvim",
"mfussenegger/nvim-dap",
},
opts = {
handlers = {}
},
},
{
"mfussenegger/nvim-dap",
config = function(_, _)
-- require("core.utils").load_mappings("dap")
end
},
{
"rust-lang/rust.vim",
ft = "rust",
init = function ()
vim.g.rustfmt_autosave = 1
end
},
{
"saecki/crates.nvim",
ft = {"rust", "toml"},
config = function(_, opts)
local crates = require('crates')
crates.setup(opts)
crates.show()
end,
},
-- {
-- "hrsh7th/nvim-cmp",
-- opts = function()
-- local M = require "plugins.configs.cmp"
-- table.insert(M.sources, {name = "crates"})
-- return M
-- end,
-- },
{
"nanotee/zoxide.vim",
lazy = false,
},
{
"othree/html5.vim",
},
{
"pangloss/vim-javascript",
},
{
"evanleck/vim-svelte",
},
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
},
}

View File

@@ -1,12 +1,12 @@
-- This file needs to have same structure as nvconfig.lua -- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua -- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
-- Please read that file to know all available options :( -- Please read that file to know all available options :(
---@type ChadrcConfig ---@type ChadrcConfig
local M = {} local M = {}
M.base46 = { M.base46 = {
theme = "gruvbox", theme = "rosepine",
-- hl_override = { -- hl_override = {
-- Comment = { italic = true }, -- Comment = { italic = true },

View File

@@ -5,11 +5,11 @@ local options = {
-- html = { "prettier" }, -- html = { "prettier" },
}, },
-- format_on_save = { format_on_save = {
-- -- These options will be passed to conform.format() -- These options will be passed to conform.format()
-- timeout_ms = 500, timeout_ms = 500,
-- lsp_fallback = true, lsp_fallback = true,
-- }, },
} }
return options return options

View File

@@ -46,3 +46,10 @@ lspconfig.rust_analyzer.setup({
on_init = nvlsp.on_init, on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities, capabilities = nvlsp.capabilities,
} }
-- configuring single server, example: typescript
-- lspconfig.ts_ls.setup {
-- on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
-- capabilities = nvlsp.capabilities,
-- }

View File

@@ -7,9 +7,8 @@ local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" }) map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>") map("i", "jk", "<ESC>")
map("n", "<C-h>", "<cmd>TmuxNavigateLeft<CR>", { desc = "window left" }) map("i", "<C-l>", function ()
map("n", "<C-l>", "<cmd>TmuxNavigateRight<CR>", { desc = "window up" }) vim.fn.feedkeys(vim.fn['copilot#Accept'](), '')
map("n", "<C-j>", "<cmd>TmuxNavigateDown<CR>", { desc = "window up" }) end, { desc = "Copilot Accept", noremap = true, silent = true })
map("n", "<C-k>", "<cmd>TmuxNavigateUp<CR>", { desc = "window up" })
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>") -- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")

View File

@@ -6,7 +6,7 @@ return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
event = 'BufWritePre', -- uncomment for format on save event = "BufWritePre", -- uncomment for format on save
opts = require "configs.conform", opts = require "configs.conform",
}, },
@@ -18,6 +18,17 @@ return {
end, end,
}, },
{
"github/copilot.vim",
lazy = false,
config = function() -- Mapping tab is already used by NvChad
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
-- The mapping is set to other key, see custom/lua/mappings
-- or run <leader>ch to see copilot mapping section
end,
},
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = { opts = {
@@ -31,6 +42,9 @@ return {
"typescript", "typescript",
"c", "c",
"markdown", "markdown",
"haskell",
"json",
"toml",
}, },
}, },
}, },
@@ -38,16 +52,16 @@ return {
{ {
"rust-lang/rust.vim", "rust-lang/rust.vim",
ft = "rust", ft = "rust",
init = function () init = function()
vim.g.rustfmt_autosave = 1 vim.g.rustfmt_autosave = 1
end end,
}, },
{ {
"saecki/crates.nvim", "saecki/crates.nvim",
ft = {"rust", "toml"}, ft = { "rust", "toml" },
config = function(_, opts) config = function(_, opts)
local crates = require('crates') local crates = require "crates"
crates.setup(opts) crates.setup(opts)
crates.show() crates.show()
end, end,
@@ -77,4 +91,14 @@ return {
require("better_escape").setup() require("better_escape").setup()
end, end,
}, },
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = {
-- ensure_installed = {
-- "vim", "lua", "vimdoc",
-- "html", "css"
-- },
-- },
-- },
} }