update some things

lel
This commit is contained in:
Lucas Barbieri 2024-02-10 10:28:00 -03:00
parent dab3bcb562
commit f805c65a30
4 changed files with 10 additions and 3 deletions

View File

@ -219,7 +219,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'java' }, ensure_installed = { 'c', 'go', 'lua', 'python', 'tsx', 'typescript', 'markdown', 'bash', 'html', 'css' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false, auto_install = false,
@ -341,7 +341,6 @@ end
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- hls = {}, -- hls = {},
rust_analyzer = {},
gopls = { gopls = {
usePlaceholders = true, usePlaceholders = true,
analyses = { analyses = {

View File

@ -0,0 +1,4 @@
return {
"liangxianzhe/floating-input.nvim",
opts = {}
}

View File

@ -1,5 +1,5 @@
return { return {
"jose-elias-alvarez/null-ls.nvim", "nvimtools/none-ls.nvim",
config = function() config = function()
require("null-ls").setup { require("null-ls").setup {
sources = { sources = {
@ -10,6 +10,7 @@ return {
require("null-ls").builtins.formatting.gofumpt, require("null-ls").builtins.formatting.gofumpt,
require("null-ls").builtins.formatting.goimports_reviser, require("null-ls").builtins.formatting.goimports_reviser,
require("null-ls").builtins.formatting.golines, require("null-ls").builtins.formatting.golines,
require("null-ls").builtins.diagnostics.golangci_lint,
} }
} }
end end

View File

@ -57,3 +57,6 @@ keymap.set("n", "<leader>gsy", "<cmd>GoTagAdd yaml <CR>", { desc = "Add yaml str
keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" }) keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" })
keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" }) keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" })
keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" }) keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" })
keymap.set("n", "<leader>gr", "<cmd>lua vim.lsp.buf.rename()<CR>",
{ desc = "Renames all references to the symbol under the cursor" })