ai, note taking and formatter
This commit is contained in:
parent
f21bde5866
commit
f284d334b4
7 changed files with 96 additions and 52 deletions
|
@ -3,21 +3,22 @@
|
||||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "99337f63f0a3c3ab9519f3d1da7618ca4f91cffe" },
|
"bufferline.nvim": { "branch": "main", "commit": "99337f63f0a3c3ab9519f3d1da7618ca4f91cffe" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||||
|
"codeium.vim": { "branch": "main", "commit": "7a01ffb1e6538fe634f294908a50a7b680039284" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "cd75be867f2331b22905f47d28c0c270a69466aa" },
|
||||||
"csvlens.nvim": { "branch": "main", "commit": "987375e2cf6399850f7f801b53b89c981ed652fa" },
|
"csvlens.nvim": { "branch": "main", "commit": "987375e2cf6399850f7f801b53b89c981ed652fa" },
|
||||||
"fd": { "branch": "master", "commit": "f8270a6a447648a087c968552aa80325277a5588" },
|
"fd": { "branch": "master", "commit": "f8270a6a447648a087c968552aa80325277a5588" },
|
||||||
"feline.nvim": { "branch": "main", "commit": "8bc28b94a16304aad2f53b8c3653b14803748c28" },
|
"feline.nvim": { "branch": "main", "commit": "8bc28b94a16304aad2f53b8c3653b14803748c28" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "47c8e3e571376b24de62408fd0c9d12f0a9fc0a3" },
|
"gitsigns.nvim": { "branch": "main", "commit": "47c8e3e571376b24de62408fd0c9d12f0a9fc0a3" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "cea5920abb202753004440f94ec39bcf2927e02e" },
|
"lazy.nvim": { "branch": "main", "commit": "c501b429cf995c645454539b924aaefae45bb9eb" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "6184ebbbc8045d70077659b7d30c705a588dc62f" },
|
"lazydev.nvim": { "branch": "main", "commit": "6184ebbbc8045d70077659b7d30c705a588dc62f" },
|
||||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "16de3b18c5f7b6230d89b8e64ce9a4801b6f8d08" },
|
"lsp-zero.nvim": { "branch": "v3.x", "commit": "16de3b18c5f7b6230d89b8e64ce9a4801b6f8d08" },
|
||||||
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
|
|
||||||
"luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" },
|
"luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" },
|
||||||
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
|
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
|
||||||
|
"mason-conform.nvim": { "branch": "main", "commit": "abce2be529f3b4b336c56d0ba6336a9144e0fee6" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
|
"mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" },
|
||||||
"neorg": { "branch": "main", "commit": "99b32492b836b64a5ff4544d4c466496f0aec9bd" },
|
"neorg": { "branch": "main", "commit": "99b32492b836b64a5ff4544d4c466496f0aec9bd" },
|
||||||
"nightfox.nvim": { "branch": "main", "commit": "df75a6a94910ae47854341d6b5a6fd483192c0eb" },
|
"nightfox.nvim": { "branch": "main", "commit": "df75a6a94910ae47854341d6b5a6fd483192c0eb" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
|
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
|
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "b7267003ba4dd860350be86f75b9d9ea287cedca" },
|
"nvim-dap-ui": { "branch": "master", "commit": "b7267003ba4dd860350be86f75b9d9ea287cedca" },
|
||||||
|
@ -27,7 +28,6 @@
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "2086e564c4d23fea714e8a6d63b881e551af2f41" },
|
"nvim-tree.lua": { "branch": "master", "commit": "2086e564c4d23fea714e8a6d63b881e551af2f41" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "c29989f5d735a30b6d2350b54d5cd50be811f8b2" },
|
"nvim-treesitter": { "branch": "master", "commit": "c29989f5d735a30b6d2350b54d5cd50be811f8b2" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
|
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
|
||||||
"pathlib.nvim": { "branch": "main", "commit": "7a5a6facd29e306bc73a37719fa67c0d2226f852" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||||
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "c392f1b78eaaf870ca584bd698e78076ed301b26" },
|
"telescope.nvim": { "branch": "master", "commit": "c392f1b78eaaf870ca584bd698e78076ed301b26" },
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
vim.cmd("nnoremap <Space> <Nop>")
|
vim.cmd("nnoremap <Space> <Nop>")
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
|
vim.g.maplocalleader = ','
|
||||||
|
|
||||||
vim.cmd("set tabstop=4")
|
vim.cmd("set tabstop=4")
|
||||||
vim.cmd("set softtabstop=0")
|
vim.cmd("set softtabstop=0")
|
||||||
|
|
12
lua/Dario48/plugins/codeium.lua
Normal file
12
lua/Dario48/plugins/codeium.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
'Exafunction/codeium.vim',
|
||||||
|
event = 'BufEnter',
|
||||||
|
config = function ()
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{ '<S-Tab>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true }},
|
||||||
|
{ '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true }},
|
||||||
|
{ '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true }},
|
||||||
|
{ '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true }}
|
||||||
|
}
|
||||||
|
}
|
28
lua/Dario48/plugins/conformer.lua
Normal file
28
lua/Dario48/plugins/conformer.lua
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"stevearc/conform.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
cmd = "Conform",
|
||||||
|
config = true,
|
||||||
|
opts = {
|
||||||
|
formatters_by_ft = {
|
||||||
|
lua = { "stylua" },
|
||||||
|
cpp = { "clang-format" },
|
||||||
|
fish = { "fish_indent" },
|
||||||
|
css = { "prettier" },
|
||||||
|
scss = { "prettier" },
|
||||||
|
js = { "prettier" },
|
||||||
|
},
|
||||||
|
format_on_save = {
|
||||||
|
-- These options will be passed to conform.format()
|
||||||
|
timeout_ms = 500,
|
||||||
|
lsp_format = "fallback",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"zapling/mason-conform.nvim",
|
||||||
|
dependencies = { "mason.nvim", "conform.nvim" },
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,9 +0,0 @@
|
||||||
/\\\\\ /\\\ /\\\\\\\\\\\\\\\ /\\\\\ /\\\ /\\\ /\\\\\\\\\\\ /\\\\ /\\\\
|
|
||||||
\/\\\\\\ \/\\\ \/\\\/////////// /\\\///\\\ \/\\\ \/\\\ \/////\\\/// \/\\\\\\ /\\\\\\
|
|
||||||
\/\\\/\\\ \/\\\ \/\\\ /\\\/ \///\\\ \//\\\ /\\\ \/\\\ \/\\\//\\\ /\\\//\\\
|
|
||||||
\/\\\//\\\ \/\\\ \/\\\\\\\\\\\ /\\\ \//\\\ \//\\\ /\\\ \/\\\ \/\\\\///\\\/\\\/ \/\\\
|
|
||||||
\/\\\\//\\\\/\\\ \/\\\/////// \/\\\ \/\\\ \//\\\ /\\\ \/\\\ \/\\\ \///\\\/ \/\\\
|
|
||||||
\/\\\ \//\\\/\\\ \/\\\ \//\\\ /\\\ \//\\\/\\\ \/\\\ \/\\\ \/// \/\\\
|
|
||||||
\/\\\ \//\\\\\\ \/\\\ \///\\\ /\\\ \//\\\\\ \/\\\ \/\\\ \/\\\
|
|
||||||
\/\\\ \//\\\\\ \/\\\\\\\\\\\\\\\ \///\\\\\/ \//\\\ /\\\\\\\\\\\ \/\\\ \/\\\
|
|
||||||
\/// \///// \/////////////// \///// \/// \/////////// \/// \///
|
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
"VonHeikemen/lsp-zero.nvim",
|
||||||
branch = 'v3.x',
|
branch = "v3.x",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
config = false,
|
config = false,
|
||||||
init = function()
|
init = function()
|
||||||
|
@ -11,85 +11,96 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'williamboman/mason.nvim',
|
"williamboman/mason.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{"<leader>m", ":Mason <CR>", desc = "open mason"}
|
{ "<leader>m", ":Mason <CR>", desc = "open mason" },
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Autocompletion
|
-- Autocompletion
|
||||||
{
|
{
|
||||||
'hrsh7th/nvim-cmp',
|
"hrsh7th/nvim-cmp",
|
||||||
event = 'InsertEnter',
|
event = "InsertEnter",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{'L3MON4D3/LuaSnip'},
|
{ "L3MON4D3/LuaSnip" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- Here is where you configure the autocompletion settings.
|
-- Here is where you configure the autocompletion settings.
|
||||||
local lsp_zero = require('lsp-zero')
|
local lsp_zero = require("lsp-zero")
|
||||||
lsp_zero.extend_cmp()
|
lsp_zero.extend_cmp()
|
||||||
|
|
||||||
-- And you can configure cmp even more, if you want to.
|
-- And you can configure cmp even more, if you want to.
|
||||||
local cmp = require('cmp')
|
local cmp = require("cmp")
|
||||||
local cmp_action = lsp_zero.cmp_action()
|
local cmp_action = lsp_zero.cmp_action()
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
sources = {
|
sources = {
|
||||||
{name = 'nvim_lsp'},
|
{ name = "nvim_lsp" },
|
||||||
{name = 'nvim_lua'},
|
{ name = "nvim_lua" },
|
||||||
},
|
},
|
||||||
formatting = lsp_zero.cmp_format(),
|
formatting = lsp_zero.cmp_format(),
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<C-Space>'] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
[' '] = cmp.mapping.confirm({select = true}),
|
[" "] = cmp.mapping.confirm({ select = false }),
|
||||||
['<C-u>'] = cmp.mapping.scroll_docs(-4),
|
["<C-u>"] = cmp.mapping.scroll_docs(-4),
|
||||||
['<C-d>'] = cmp.mapping.scroll_docs(4),
|
["<C-d>"] = cmp.mapping.scroll_docs(4),
|
||||||
['<C-f>'] = cmp_action.luasnip_jump_forward(),
|
["<C-f>"] = cmp_action.luasnip_jump_forward(),
|
||||||
['<C-b>'] = cmp_action.luasnip_jump_backward(),
|
["<C-b>"] = cmp_action.luasnip_jump_backward(),
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
})
|
end,
|
||||||
end
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
{
|
{
|
||||||
'neovim/nvim-lspconfig',
|
"neovim/nvim-lspconfig",
|
||||||
cmd = {'LspInfo', 'LspInstall', 'LspStart'},
|
cmd = { "LspInfo", "LspInstall", "LspStart" },
|
||||||
event = {'BufReadPre', 'BufNewFile'},
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{'hrsh7th/cmp-nvim-lsp'},
|
{ "hrsh7th/cmp-nvim-lsp" },
|
||||||
{'williamboman/mason-lspconfig.nvim'},
|
{ "williamboman/mason-lspconfig.nvim" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- This is where all the LSP shenanigans will live
|
-- This is where all the LSP shenanigans will live
|
||||||
local lsp_zero = require('lsp-zero')
|
local lsp_zero = require("lsp-zero")
|
||||||
lsp_zero.extend_lspconfig()
|
lsp_zero.extend_lspconfig()
|
||||||
|
|
||||||
lsp_zero.on_attach(function(client, bufnr)
|
lsp_zero.on_attach(function(client, bufnr)
|
||||||
-- see :help lsp-zero-keybindings
|
-- see :help lsp-zero-keybindings
|
||||||
-- to learn the available actions
|
-- to learn the available actions
|
||||||
vim.keymap.set("n", "gd", function () vim.lsp.buf.definition() end, {buffer = bufnr, remap = false})
|
vim.keymap.set("n", "gd", function()
|
||||||
vim.keymap.set("n", "<leader>ca", function () vim.lsp.buf.code_action() end, {buffer = bufnr, remap = false})
|
vim.lsp.buf.definition()
|
||||||
|
end, { buffer = bufnr, remap = false })
|
||||||
|
vim.keymap.set("n", "<leader>ca", function()
|
||||||
|
vim.lsp.buf.code_action()
|
||||||
|
end, { buffer = bufnr, remap = false })
|
||||||
lsp_zero.default_keymaps({ buffer = bufnr })
|
lsp_zero.default_keymaps({ buffer = bufnr })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
require('mason-lspconfig').setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {},
|
ensure_installed = {},
|
||||||
handlers = {
|
handlers = {
|
||||||
lsp_zero.default_setup,
|
lsp_zero.default_setup,
|
||||||
lua_ls = function()
|
lua_ls = function()
|
||||||
-- (Optional) Configure lua language server for neovim
|
-- (Optional) Configure lua language server for neovim
|
||||||
local lua_opts = lsp_zero.nvim_lua_ls()
|
local lua_opts = lsp_zero.nvim_lua_ls()
|
||||||
require('lspconfig').lua_ls.setup(lua_opts)
|
require("lspconfig").lua_ls.setup(lua_opts)
|
||||||
require'lspconfig'.ltex.setup{}
|
require("lspconfig").ltex.setup({})
|
||||||
end,
|
end,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
keys = {{"<leader>qf", function() vim.lsp.buf.code_action() end, silent=true, desc="quickfix"}}
|
keys = { {
|
||||||
}
|
"<leader>qf",
|
||||||
|
function()
|
||||||
|
vim.lsp.buf.code_action()
|
||||||
|
end,
|
||||||
|
silent = true,
|
||||||
|
desc = "quickfix",
|
||||||
|
} },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
return {
|
return {
|
||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
dependencies = { "luarocks.nvim" },
|
dependencies = { "luarocks.nvim" },
|
||||||
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
|
lazy = true, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
|
||||||
config = true,
|
|
||||||
opts = {
|
opts = {
|
||||||
load = {
|
load = {
|
||||||
["core.defaults"] = {},
|
["core.defaults"] = {},
|
||||||
|
@ -17,5 +16,7 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
ft = "norg",
|
||||||
|
cmd = "Neorg"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue