mirror of
https://github.com/eRgo35/neovim.git
synced 2026-02-04 13:56:10 +01:00
Compare commits
38 Commits
2207b62d5e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b8e5b873b8 | |||
| 811adf796f | |||
|
|
fd56fd515e | ||
|
|
dcfe42861c | ||
| 223ebb264b | |||
| 2eb6e7ec6f | |||
| ba342d13e5 | |||
| 7c50a16fd8 | |||
| 78fa68bde1 | |||
| 456cdac20d | |||
|
|
d0c602f5f1 | ||
|
|
6db16815ac | ||
|
|
76da790a27 | ||
|
|
0eb7d42b30 | ||
|
|
59f23d053a | ||
|
|
a4c2bbf43c | ||
|
|
cb60352466 | ||
|
|
3e1667ef3c | ||
|
|
935ea570af | ||
|
|
0c7d9cefa9 | ||
|
|
36b143653a | ||
|
|
c4a05091b6 | ||
|
|
8f4b09ef03 | ||
|
|
41c5b46733 | ||
|
|
aad624221a | ||
|
|
2730bbd210 | ||
|
|
3da16ca21b | ||
|
|
d801a059ef | ||
|
|
260c70c958 | ||
|
|
6a612b80f8 | ||
|
|
330861bd93 | ||
|
|
813f95e06e | ||
|
|
94dc47f8bb | ||
|
|
70f66adb59 | ||
|
|
726248c2f3 | ||
|
|
9d47133ba1 | ||
|
|
aa13916e94 | ||
|
|
45a1b2c9a8 |
2
init.lua
2
init.lua
@@ -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
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
"LuaSnip": { "branch": "master", "commit": "e808bee352d1a6fcf902ca1a71cee76e60e24071" },
|
|
||||||
"NvChad": { "branch": "v2.5", "commit": "f6025f0788880989484733c90deff07dff01ef02" },
|
|
||||||
"base46": { "branch": "v2.5", "commit": "fec9fa583025e69e0c4f902bd61990e8d13d1975" },
|
|
||||||
"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": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "863903631e676b33e8be2acb17512fdc1b80b4fb" },
|
|
||||||
"html5.vim": { "branch": "master", "commit": "485f2cd62162c81e56d8604b4c630f0b5ef69d1f" },
|
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
|
||||||
"menu": { "branch": "main", "commit": "ee85b2e394fde354bd24e35ff7a688d10c9212fa" },
|
|
||||||
"minty": { "branch": "main", "commit": "7c2a6452922313e10ff46aea49a4bb5e50e1ac68" },
|
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "9b2509f17c284486497358ccea1019cc17c28af6" },
|
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "f5f67892996b280ae78b1b0a2d07c4fa29ae0905" },
|
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "da926103921117cc6dc8a518bc9b949c90d1c70c" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
|
||||||
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
|
|
||||||
"telescope.nvim": { "branch": "master", "commit": "df534c3042572fb958586facd02841e10186707c" },
|
|
||||||
"ui": { "branch": "v3.0", "commit": "e0891549ec3ccff7d68a57915e7af97c9608ffad" },
|
|
||||||
"vim-javascript": { "branch": "master", "commit": "c470ce1399a544fe587eab950f571c83cccfbbdc" },
|
|
||||||
"vim-svelte": { "branch": "main", "commit": "0e93ec53c3667753237282926fec626785622c1c" },
|
|
||||||
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" },
|
|
||||||
"volt": { "branch": "main", "commit": "43f72b49037c191eb3cfe26ba7a5574b4bfce226" },
|
|
||||||
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" },
|
|
||||||
"zoxide.vim": { "branch": "master", "commit": "b1e70b6fc1682a83929aee63680d2b43456fe9a5" }
|
|
||||||
}
|
|
||||||
@@ -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
|
|
||||||
@@ -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)
|
|
||||||
@@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -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,
|
|
||||||
}
|
|
||||||
@@ -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
|
|
||||||
@@ -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>")
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
require "nvchad.options"
|
|
||||||
|
|
||||||
-- add yours here!
|
|
||||||
|
|
||||||
-- local o = vim.o
|
|
||||||
-- o.cursorlineopt ='both' -- to enable cursorline!
|
|
||||||
@@ -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,
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -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 },
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
-- }
|
||||||
|
|||||||
@@ -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>")
|
||||||
|
|||||||
@@ -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",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -40,14 +54,14 @@ return {
|
|||||||
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"
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user