Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
e480f27f70 | |||
54860e1f3b | |||
2218802114 | |||
c32d895f9b | |||
9406f6d742 | |||
69e87e7d77 | |||
aa3f06a77f | |||
9e50fa629a | |||
0009f09e82 | |||
ae1e337895 | |||
947d04c265 | |||
3d987091c6 |
13
.luarc.json
Executable file
13
.luarc.json
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"runtime.version": "LuaJIT",
|
||||||
|
"runtime.path": [
|
||||||
|
"lua/?.lua",
|
||||||
|
"lua/?/init.lua"
|
||||||
|
],
|
||||||
|
"diagnostics.globals": ["vim"],
|
||||||
|
"workspace.checkThirdParty": false,
|
||||||
|
"workspace.library": [
|
||||||
|
"$VIMRUNTIME",
|
||||||
|
"./lua"
|
||||||
|
]
|
||||||
|
}
|
@ -1,23 +1,12 @@
|
|||||||
-- Close brackets
|
local autoclose = require("autoclose")
|
||||||
local config = {
|
|
||||||
keys = {
|
|
||||||
["("] = { escape = false, close = true, pair = "()", disabled_filetypes = {} },
|
|
||||||
["["] = { escape = false, close = true, pair = "[]", disabled_filetypes = {} },
|
|
||||||
["{"] = { escape = false, close = true, pair = "{}", disabled_filetypes = {} },
|
|
||||||
|
|
||||||
[">"] = { escape = true, close = false, pair = "<>", disabled_filetypes = {} },
|
autoclose.setup({
|
||||||
[")"] = { escape = true, close = false, pair = "()", disabled_filetypes = {} },
|
|
||||||
["]"] = { escape = true, close = false, pair = "[]", disabled_filetypes = {} },
|
|
||||||
["}"] = { escape = true, close = false, pair = "{}", disabled_filetypes = {} },
|
|
||||||
|
|
||||||
['"'] = { escape = true, close = true, pair = '""', disabled_filetypes = {} },
|
|
||||||
["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {} },
|
|
||||||
["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {} },
|
|
||||||
},
|
|
||||||
options = {
|
options = {
|
||||||
disabled_filetypes = { "text", "markdown", "norg" },
|
disabled_filetypes = { "text", "markdown", "neogit", },
|
||||||
disable_when_touch = false,
|
disable_when_touch = true,
|
||||||
pair_spaces = false,
|
pair_spaces = true,
|
||||||
auto_indent = true,
|
auto_indent = true,
|
||||||
|
disable_command_mode = true,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ require("barbecue").setup({
|
|||||||
---modified.
|
---modified.
|
||||||
---
|
---
|
||||||
---@type boolean
|
---@type boolean
|
||||||
show_modified = false,
|
show_modified = true,
|
||||||
|
|
||||||
---Get modified status of file.
|
---Get modified status of file.
|
||||||
---
|
---
|
||||||
|
@ -1,13 +1,44 @@
|
|||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
|
|
||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
harpoon:setup()
|
harpoon:setup({})
|
||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
|
--
|
||||||
|
-- basic telescope configuration
|
||||||
|
local conf = require("telescope.config").values
|
||||||
|
local function toggle_telescope(harpoon_files)
|
||||||
|
local file_paths = {}
|
||||||
|
for _, item in ipairs(harpoon_files.items) do
|
||||||
|
table.insert(file_paths, item.value)
|
||||||
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
|
require("telescope.pickers").new({}, {
|
||||||
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
prompt_title = "Harpoon",
|
||||||
|
finder = require("telescope.finders").new_table({
|
||||||
|
results = file_paths,
|
||||||
|
}),
|
||||||
|
previewer = conf.file_previewer({}),
|
||||||
|
sorter = conf.generic_sorter({}),
|
||||||
|
}):find()
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>H", function() toggle_telescope(harpoon:list()) end,
|
||||||
|
{ desc = "Open harpoon in telescope" })
|
||||||
|
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end,
|
||||||
|
{ desc = "Harpoon: Add current buffer" })
|
||||||
|
vim.keymap.set("n", "<leader>hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end,
|
||||||
|
{ desc = "Harpoon: Toggle quick menu" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||||
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
||||||
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
||||||
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
||||||
|
|
||||||
|
-- Toggle previous & next buffers stored within Harpoon list
|
||||||
|
vim.keymap.set("n", "<leader>hp", function() harpoon:list():prev() end,
|
||||||
|
{ desc = "Harpoon: Previous buffer" })
|
||||||
|
vim.keymap.set("n", "<leader>hn", function() harpoon:list():next() end,
|
||||||
|
{ desc = "Harpoon: Next buffer" })
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local lsp_zero = require('lsp-zero')
|
local lsp_zero = require("lsp-zero")
|
||||||
|
|
||||||
lsp_zero.on_attach(function(client, bufnr)
|
lsp_zero.on_attach(function(client, bufnr)
|
||||||
-- see :help lsp-zero-keybindings
|
-- see :help lsp-zero-keybindings
|
||||||
@ -6,10 +6,17 @@ lsp_zero.on_attach(function(client, bufnr)
|
|||||||
lsp_zero.default_keymaps({buffer = bufnr})
|
lsp_zero.default_keymaps({buffer = bufnr})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
require('mason').setup({})
|
require("mason").setup({})
|
||||||
require('mason-lspconfig').setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = {},
|
ensure_installed = {},
|
||||||
handlers = {
|
handlers = {
|
||||||
lsp_zero.default_setup,
|
lsp_zero.default_setup,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
local codeium = require("codeium")
|
||||||
|
codeium.setup({
|
||||||
|
enable_chat = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
48
after/plugin/mini.lua
Normal file
48
after/plugin/mini.lua
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
-- Configuration of mini.nvim plugins
|
||||||
|
|
||||||
|
-- mini.map
|
||||||
|
local map = require("mini.map")
|
||||||
|
map.setup({
|
||||||
|
symbols = {
|
||||||
|
encode = map.gen_encode_symbols.dot("3x2")
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
width = 16,
|
||||||
|
show_integration_count = false
|
||||||
|
},
|
||||||
|
integrations = {
|
||||||
|
map.gen_integration.diagnostic({
|
||||||
|
error = "DiagnosticFloatingError",
|
||||||
|
warn = "DiagnosticFloatingWarn",
|
||||||
|
info = "DiagnosticFloatingInfo",
|
||||||
|
hint = "DiagnosticFloatingHint",
|
||||||
|
}),
|
||||||
|
map.gen_integration.builtin_search(),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<Leader>mf", map.toggle_focus)
|
||||||
|
vim.keymap.set("n", "<Leader>mr", map.refresh)
|
||||||
|
vim.keymap.set("n", "<Leader>mt", map.toggle)
|
||||||
|
|
||||||
|
|
||||||
|
-- mini.animate
|
||||||
|
local animate = require("mini.animate")
|
||||||
|
animate.setup({
|
||||||
|
cursor = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" })
|
||||||
|
},
|
||||||
|
scroll = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" })
|
||||||
|
},
|
||||||
|
resize = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" })
|
||||||
|
},
|
||||||
|
open = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" })
|
||||||
|
},
|
||||||
|
close = {
|
||||||
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" })
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
-- Note keymaps
|
|
||||||
vim.keymap.set("n", "<leader>ni", ":Neorg index<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>nr", ":Neorg return<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>nj", ":Neorg journal custom<CR>")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>nim", ":Neorg inject-metadata<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>nis", ":Neorg inject-metadata<CR>")
|
|
6
after/plugin/notes.lua
Normal file
6
after/plugin/notes.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-- Configuration of note taking setup
|
||||||
|
|
||||||
|
local mkdnflow = require("mkdnflow")
|
||||||
|
mkdnflow.setup({
|
||||||
|
wrap = true
|
||||||
|
})
|
@ -1,4 +1,4 @@
|
|||||||
require('oil').setup({
|
require("oil").setup({
|
||||||
default_file_explorer = false,
|
default_file_explorer = false,
|
||||||
|
|
||||||
columns = {
|
columns = {
|
||||||
@ -10,8 +10,8 @@ require('oil').setup({
|
|||||||
|
|
||||||
float = {
|
float = {
|
||||||
-- Padding around the floating window
|
-- Padding around the floating window
|
||||||
padding = 8,
|
padding = 12,
|
||||||
max_width = 80,
|
max_width = 120,
|
||||||
max_height = 64,
|
max_height = 64,
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
win_options = {
|
win_options = {
|
||||||
@ -22,23 +22,7 @@ require('oil').setup({
|
|||||||
override = function(conf)
|
override = function(conf)
|
||||||
return conf
|
return conf
|
||||||
end,
|
end,
|
||||||
},
|
}
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
["g?"] = "actions.show_help",
|
|
||||||
["<CR>"] = "actions.select",
|
|
||||||
["<C-s>"] = "actions.select_vsplit",
|
|
||||||
["<C-h>"] = "actions.select_split",
|
|
||||||
["<C-t>"] = "actions.select_tab",
|
|
||||||
["<C-p>"] = "actions.preview",
|
|
||||||
["<Esc>"] = "actions.close",
|
|
||||||
["<C-r>"] = "actions.refresh",
|
|
||||||
["-"] = "actions.parent",
|
|
||||||
["_"] = "actions.open_cwd",
|
|
||||||
["`"] = "actions.cd",
|
|
||||||
["~"] = "actions.tcd",
|
|
||||||
["g."] = "actions.toggle_hidden",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>-', ":Oil --float <CR>")
|
vim.keymap.set("n", "<leader>-", ":Oil --float <CR>")
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
require("auto-session").setup {
|
sessions = require("seshmgr")
|
||||||
log_level = "error",
|
|
||||||
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/"},
|
|
||||||
}
|
|
||||||
|
|
||||||
require('session-lens').setup({
|
sessions.setup({
|
||||||
path_display = {'shorten'},
|
session_dir = os.getenv("HOME") .. "/.nvim/sessions",
|
||||||
theme_conf = { border = true },
|
|
||||||
previewer = false,
|
telescope = {
|
||||||
|
enabled = true,
|
||||||
|
keymap = "<leader>ss",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>ss', ":SearchSession<CR>")
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- finding files in working dir and repo
|
-- finding files in working dir and repo
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require("telescope.builtin")
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
vim.keymap.set("n", "<leader>ff", builtin.find_files, {})
|
||||||
vim.keymap.set('n', '<leader>pf', builtin.git_files, {})
|
vim.keymap.set("n", "<leader>pf", builtin.git_files, {})
|
||||||
vim.keymap.set('n', '<leader>ps', function()
|
vim.keymap.set("n", "<leader>ps", function()
|
||||||
builtin.grep_string({ search = vim.fn.input("Grep > ") });
|
builtin.grep_string({ search = vim.fn.input("Grep > ") });
|
||||||
end)
|
end)
|
||||||
|
@ -1,23 +1,32 @@
|
|||||||
-- parsing and highlighting
|
-- parsing and highlighting
|
||||||
require'nvim-treesitter.configs'.setup {
|
require"nvim-treesitter.configs".setup {
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||||
ensure_installed = { "python", "javascript", "typescript", "c", "rust", "bash", "lua", "vim", "vimdoc", "query" },
|
|
||||||
|
|
||||||
|
ensure_installed = "all",
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
|
|
||||||
-- Automatically install missing parsers when entering buffer
|
-- Automatically install missing parsers when entering buffer
|
||||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
-- Recommendation: set to false if you don"t have `tree-sitter` CLI installed locally
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
|
|
||||||
|
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "gnn",
|
||||||
|
node_incremental = "grn",
|
||||||
|
scope_incremental = "grc",
|
||||||
|
node_decremental = "grm",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Needed because treesitter highlight turns off autoindent for php files
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
indent = {
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
enable = true,
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
-- advanced undo history
|
-- advanced undo history
|
||||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||||
|
|
||||||
|
vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir"
|
||||||
|
vim.opt.swapfile = false
|
||||||
|
vim.opt.backup = false
|
||||||
|
vim.opt.undofile = true
|
||||||
|
@ -10,71 +10,68 @@ return {
|
|||||||
|
|
||||||
|
|
||||||
-- useful
|
-- useful
|
||||||
{ "rmagatti/session-lens",
|
|
||||||
dependencies = {
|
--{ dir = "/mnt/nas_belar/code/vim-plugins/narrator.nvim" },
|
||||||
"rmagatti/auto-session",
|
|
||||||
"nvim-telescope/telescope.nvim"
|
{ "nvim-telescope/telescope.nvim",
|
||||||
}
|
version = "0.1.x",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" }
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "nvim-telescope/telescope.nvim", version = "0.1.x",
|
{ "mackeper/SeshMgr.nvim",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" }
|
event = "VeryLazy"
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "ThePrimeagen/harpoon",
|
{ "ThePrimeagen/harpoon",
|
||||||
version = "harpoon2",
|
branch = "harpoon2",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ "ThePrimeagen/refactoring.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
},
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require("refactoring").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
{ "NeogitOrg/neogit",
|
{ "NeogitOrg/neogit",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" }
|
branch = "master",
|
||||||
},
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
{ "stevearc/oil.nvim" },
|
"sindrets/diffview.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
{ "nvim-neorg/neorg",
|
|
||||||
version = "*",
|
|
||||||
build = ":Neorg sync-parsers",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
|
||||||
require("neorg").setup {
|
|
||||||
load = {
|
|
||||||
["core.defaults"] = {}, -- Loads default behaviour
|
|
||||||
["core.concealer"] = {}, -- Adds pretty icons to your documents
|
|
||||||
["core.dirman"] = { -- Manages Neorg workspaces
|
|
||||||
config = {
|
|
||||||
workspaces = {
|
|
||||||
notes = "~/Documents/Notes",
|
|
||||||
},
|
|
||||||
default_workspace = "notes",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
end,
|
},
|
||||||
|
|
||||||
|
{ "stevearc/oil.nvim",
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" }
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "kylechui/nvim-surround",
|
{ "kylechui/nvim-surround",
|
||||||
version = "*",
|
version = "*",
|
||||||
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-surround").setup()
|
require("nvim-surround").setup()
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "numToStr/Comment.nvim",
|
|
||||||
config = function()
|
|
||||||
require("Comment").setup()
|
|
||||||
end
|
|
||||||
},
|
|
||||||
|
|
||||||
{ "mbbill/undotree" },
|
{ "mbbill/undotree" },
|
||||||
|
|
||||||
{ "m4xshen/autoclose.nvim",
|
{ "m4xshen/autoclose.nvim" },
|
||||||
config = function ()
|
|
||||||
require("autoclose").setup()
|
|
||||||
end
|
-- Notes
|
||||||
|
|
||||||
|
{ "jbyuki/nabla.nvim",
|
||||||
|
dependencies = { "nvim-treesitter/nvim-treesitter" }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ "jakewvincent/mkdnflow.nvim" },
|
||||||
|
|
||||||
|
|
||||||
-- pretty
|
-- pretty
|
||||||
|
|
||||||
@ -106,21 +103,97 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
-- mini
|
||||||
|
|
||||||
|
{ "echasnovski/mini.basics",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.basics").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.ai",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.ai").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.comment",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.comment").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.map",
|
||||||
|
version = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.statusline",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.statusline").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.animate",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.animate").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.fuzzy",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.fuzzy").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "echasnovski/mini.splitjoin",
|
||||||
|
version = false,
|
||||||
|
config = function()
|
||||||
|
require("mini.splitjoin").setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Style Checker
|
||||||
|
|
||||||
|
{ "averms/black-nvim" },
|
||||||
|
|
||||||
|
-- trouble
|
||||||
|
|
||||||
|
{ "folke/trouble.nvim",
|
||||||
|
branch = "dev",
|
||||||
|
},
|
||||||
|
|
||||||
-- lsp
|
-- lsp
|
||||||
|
|
||||||
{ "github/copilot.vim" },
|
{ "Exafunction/codeium.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{"williamboman/mason.nvim",
|
|
||||||
lazy = false,
|
{ "neoclide/coc.nvim",
|
||||||
|
branch = "release"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{ "williamboman/mason.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup({})
|
require("mason").setup({})
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{"williamboman/mason-lspconfig.nvim"},
|
{ "williamboman/mason-lspconfig.nvim" },
|
||||||
|
|
||||||
{"VonHeikemen/lsp-zero.nvim", branch = "v3.x"},
|
{ "VonHeikemen/lsp-zero.nvim", branch = "v3.x" },
|
||||||
{"neovim/nvim-lspconfig"},
|
{ "neovim/nvim-lspconfig" },
|
||||||
{"hrsh7th/cmp-nvim-lsp"},
|
{ "hrsh7th/cmp-nvim-lsp" },
|
||||||
{"hrsh7th/nvim-cmp"},
|
{ "hrsh7th/nvim-cmp" },
|
||||||
{"L3MON4D3/LuaSnip"},
|
{ "L3MON4D3/LuaSnip" },
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,6 @@ vim.keymap.set("n", "<leader>.", vim.cmd.Ex)
|
|||||||
|
|
||||||
vim.keymap.set("n", "<C-b>", ":e #<CR>")
|
vim.keymap.set("n", "<C-b>", ":e #<CR>")
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-b>w", ":wq<CR>")
|
|
||||||
|
|
||||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
|
||||||
@ -22,3 +20,5 @@ vim.keymap.set("v", "<leader>y", "\"+y")
|
|||||||
vim.keymap.set("n", "<leader>Y", "\"+Y")
|
vim.keymap.set("n", "<leader>Y", "\"+Y")
|
||||||
|
|
||||||
vim.keymap.set("n", "<F5>", ":make")
|
vim.keymap.set("n", "<F5>", ":make")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>l", ":noh<CR>")
|
||||||
|
@ -3,6 +3,7 @@ vim.g.mapleader = " "
|
|||||||
vim.opt.nu = true
|
vim.opt.nu = true
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
vim.opt.softtabstop = 4
|
vim.opt.softtabstop = 4
|
||||||
@ -13,11 +14,6 @@ vim.opt.smartindent = true
|
|||||||
|
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
||||||
vim.opt.swapfile = false
|
|
||||||
vim.opt.backup = false
|
|
||||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
||||||
vim.opt.undofile = true
|
|
||||||
|
|
||||||
vim.opt.hlsearch = true
|
vim.opt.hlsearch = true
|
||||||
vim.opt.incsearch = true
|
vim.opt.incsearch = true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user