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`
require('nvim-treesitter.configs').setup {
-- 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!)
auto_install = false,
@ -341,7 +341,6 @@ end
local servers = {
-- clangd = {},
-- hls = {},
rust_analyzer = {},
gopls = {
usePlaceholders = true,
analyses = {

View File

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

View File

@ -1,5 +1,5 @@
return {
"jose-elias-alvarez/null-ls.nvim",
"nvimtools/none-ls.nvim",
config = function()
require("null-ls").setup {
sources = {
@ -10,6 +10,7 @@ return {
require("null-ls").builtins.formatting.gofumpt,
require("null-ls").builtins.formatting.goimports_reviser,
require("null-ls").builtins.formatting.golines,
require("null-ls").builtins.diagnostics.golangci_lint,
}
}
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>bprev<CR>", { desc = "Go to previous 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" })