update some things
lel
This commit is contained in:
parent
dab3bcb562
commit
f805c65a30
3
init.lua
3
init.lua
@ -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 = {
|
||||||
|
4
lua/custom/plugins/floating-input.lua
Normal file
4
lua/custom/plugins/floating-input.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
"liangxianzhe/floating-input.nvim",
|
||||||
|
opts = {}
|
||||||
|
}
|
@ -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
|
@ -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" })
|
||||||
|
Loading…
Reference in New Issue
Block a user