adding a few plugins

This commit is contained in:
Miguel Palhas
2024-10-05 08:57:59 +01:00
parent 76da790a27
commit 9d235dea9d
10 changed files with 152 additions and 21 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults()
local lspconfig = require "lspconfig"
-- EXAMPLE
local servers = { "html", "cssls" }
local servers = { "html", "cssls", "lua_ls", "biome" }
local nvlsp = require "nvchad.configs.lspconfig"
-- lsps with default config
+10 -1
View File
@@ -7,4 +7,13 @@ local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
-- close current buffer
map("n", "<leader>q", ":q<cr>")
-- go back to normal mode
map("i", "jj", "<Esc>")
map("i", "jk", "<Esc>")
--save file
map("n", "<C-s>", ":update<CR>")
map("i", "<C-s>", "<C-o>:update<CR><Esc>")
+12 -1
View File
@@ -2,5 +2,16 @@ require "nvchad.options"
-- add yours here!
-- local o = vim.o
local o = vim.o
-- o.cursorlineopt ='both' -- to enable cursorline!
o.cursorlineopt = 'both'
-- line numbering
o.number = true
o.relativenumber = true
-- search options
o.showmatch = true
o.smartcase = true
o.gdefault = true
+14
View File
@@ -0,0 +1,14 @@
return {
{
"m4xshen/hardtime.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
opts = {
restricted_keys = {
["w"] = { "n", "x" },
["W"] = { "n", "x" },
["b"] = { "n", "x" },
["B"] = { "n", "x" },
},
},
},
}
-18
View File
@@ -4,22 +4,4 @@ return {
-- event = 'BufWritePre', -- uncomment for format on save
opts = require "configs.conform",
},
-- These are some examples, uncomment them if you want to see them work!
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = {
-- ensure_installed = {
-- "vim", "lua", "vimdoc",
-- "html", "css"
-- },
-- },
-- },
}
+14
View File
@@ -0,0 +1,14 @@
return {
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
{
"mrcjkb/rustaceanvim",
version = "^5", -- Recommended
lazy = false, -- This plugin is already lazy
},
}
+3
View File
@@ -0,0 +1,3 @@
return {
{ "fladson/vim-kitty" },
}
+48
View File
@@ -0,0 +1,48 @@
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
"nvim-treesitter/nvim-treesitter-textobjects",
},
opts = {
ensure_installed = {
"vim",
"lua",
"vimdoc",
"html",
"css",
"rust",
"regex",
"javascript",
"typescript",
"tsx",
"solidity",
"toml",
"bash",
"markdown",
"markdown_inline",
"json",
"elixir",
"erlang",
"eex",
"kdl",
"yuck",
"sql",
"typst"
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = "<nop>",
node_decremental = "<bs>",
},
},
textobjects = {
select = { enable = true },
},
},
},
}