Compare commits
2 Commits
1580a202c1
...
470525c4e5
Author | SHA1 | Date | |
---|---|---|---|
|
470525c4e5 | ||
|
e96481e1f2 |
24
init.lua
24
init.lua
@ -87,6 +87,10 @@ vim.keymap.set("n", "<C-h>", "<C-w><C-h>", { desc = "Move focus to the left wind
|
|||||||
vim.keymap.set("n", "<C-l>", "<C-w><C-l>", { desc = "Move focus to the right window" })
|
vim.keymap.set("n", "<C-l>", "<C-w><C-l>", { desc = "Move focus to the right window" })
|
||||||
vim.keymap.set("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower window" })
|
vim.keymap.set("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower window" })
|
||||||
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
||||||
|
-- Jump to the definition of the word under your cursor.
|
||||||
|
-- This is where a variable was first declared, or where a function is defined, etc.
|
||||||
|
-- To jump back, press <C-T>.
|
||||||
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, { desc = "" })
|
||||||
-- [[ Basic Autocommands ]]
|
-- [[ Basic Autocommands ]]
|
||||||
-- Go back to last edited line when reopening file
|
-- Go back to last edited line when reopening file
|
||||||
vim.api.nvim_create_autocmd("BufRead", {
|
vim.api.nvim_create_autocmd("BufRead", {
|
||||||
@ -261,13 +265,13 @@ require("lazy").setup({
|
|||||||
"ixru/nvim-markdown",
|
"ixru/nvim-markdown",
|
||||||
"KeitaNakamura/tex-conceal.vim",
|
"KeitaNakamura/tex-conceal.vim",
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
---- NOTE: Plugins can specify dependencies.
|
"skywind3000/asyncrun.vim",
|
||||||
----
|
-- NOTE: Plugins can specify dependencies.
|
||||||
---- The dependencies are proper plugin specifications as well - anything
|
--
|
||||||
---- you do for a plugin at the top level, you can do for a dependency.
|
-- The dependencies are proper plugin specifications as well - anything
|
||||||
----
|
-- you do for a plugin at the top level, you can do for a dependency.
|
||||||
---- Use the `dependencies` key to specify the dependencies of a particular plugin
|
--
|
||||||
|
-- Use the `dependencies` key to specify the dependencies of a particular plugin
|
||||||
{ -- Fuzzy Finder (files, lsp, etc)
|
{ -- Fuzzy Finder (files, lsp, etc)
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
@ -348,11 +352,6 @@ require("lazy").setup({
|
|||||||
vim.keymap.set("n", keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
vim.keymap.set("n", keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Jump to the definition of the word under your cursor.
|
|
||||||
-- This is where a variable was first declared, or where a function is defined, etc.
|
|
||||||
-- To jump back, press <C-T>.
|
|
||||||
map("gd", require("telescope.builtin").lsp_definitions, "[G]oto [D]efinition")
|
|
||||||
|
|
||||||
-- Find references for the word under your cursor.
|
-- Find references for the word under your cursor.
|
||||||
map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
||||||
|
|
||||||
@ -450,6 +449,7 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
pyright = {},
|
pyright = {},
|
||||||
|
fortls = {},
|
||||||
bashls = { dependencies = "shellcheck" },
|
bashls = { dependencies = "shellcheck" },
|
||||||
rust_analyzer = {
|
rust_analyzer = {
|
||||||
settings = {
|
settings = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user