Compare commits

..

No commits in common. "6711c0711c7f0d19ca05fe62a732d2831c7d8949" and "49f55400d06fa113e4b4ae5a6fa97a6d83c59983" have entirely different histories.

6 changed files with 8 additions and 22 deletions

View file

@ -1,7 +1,3 @@
-- Leader key
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Better file reading -- Better file reading
vim.opt.autoread = true vim.opt.autoread = true
vim.opt.autowrite = true vim.opt.autowrite = true

View file

@ -11,6 +11,6 @@ return {
}, },
}, },
keys = { keys = {
{ "<leader>a", "<cmd>Lspsaga code_action<CR>", desc = "Code Action" }, { "<Space>a", "<cmd>Lspsaga code_action<CR>", desc = "Code Action" },
}, },
} }

View file

@ -9,6 +9,6 @@ return {
vim.g.neoformat_enabled_nix = { "alejandra" } vim.g.neoformat_enabled_nix = { "alejandra" }
end, end,
keys = { keys = {
{ "<leader>lf", "<cmd>Neoformat<CR>", desc = "Format file" }, { "<Space>lf", "<cmd>Neoformat<CR>", desc = "Format file" },
}, },
} }

View file

@ -10,6 +10,6 @@ return {
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
end, end,
keys = { keys = {
{ "<leader>e", "<cmd>NvimTreeFindFileToggle<CR>", desc = "File Explorer" }, { "<Space>e", "<cmd>NvimTreeFindFileToggle<CR>", desc = "File Explorer" },
}, },
} }

View file

@ -3,24 +3,14 @@ return {
build = ":TSUpdate", build = ":TSUpdate",
opts = { opts = {
ensure_installed = { ensure_installed = {
"bash",
"c",
"diff",
"html",
"lua",
"luadoc",
"markdown",
"nix", "nix",
"lua",
"vim", "vim",
"vimdoc",
}, },
sync_install = true,
auto_install = true, auto_install = true,
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
}, },
config = function(_, opts)
require("nvim-treesitter.install").prefer_git = true
require("nvim-treesitter.configs").setup(opts)
end,
} }

View file

@ -7,8 +7,8 @@ return {
opts = {}, opts = {},
cmd = "Telescope", cmd = "Telescope",
keys = { keys = {
{ "<leader>f", "<cmd>Telescope find_files<CR>", desc = "Find files" }, { "<Space>f", "<cmd>Telescope find_files<CR>", desc = "Find files" },
{ "<leader><leader>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" }, { "<Space><Space>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" },
{ "<leader>sg", "<cmd>Telescope live_grep<CR>", desc = "Live grep" }, { "<Space>sg", "<cmd>Telescope live_grep<CR>", desc = "Live grep" },
}, },
} }