few fixes to nvim config
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
return {
|
||||
-- "EdenEast/nightfox.nvim",
|
||||
-- lazy = false,
|
||||
-- priority = 1000,
|
||||
-- init = function()
|
||||
-- require("nightfox").setup {
|
||||
-- transparent_background = true,
|
||||
-- }
|
||||
-- vim.cmd.colorscheme "carbonfox"
|
||||
--
|
||||
-- vim.cmd.hi "Comment gui=none"
|
||||
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
-- vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
|
||||
--
|
||||
-- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
-- border = "rounded",
|
||||
-- })
|
||||
--
|
||||
-- vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
||||
-- border = "rounded",
|
||||
-- })
|
||||
--
|
||||
-- vim.diagnostic.config {
|
||||
-- float = { border = "rounded" },
|
||||
-- }
|
||||
-- end,
|
||||
}
|
||||
@@ -12,7 +12,7 @@ return {
|
||||
formatters_by_ft = {
|
||||
c = { "clang-format" },
|
||||
css = { "prettier" },
|
||||
go = { "gofumpt", "goimports_reviser" },
|
||||
go = { "gofumpt", "goimports-reviser" },
|
||||
html = { "prettier" },
|
||||
lua = { "stylua" },
|
||||
typescript = { "prettier" },
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"tpope/vim-dadbod",
|
||||
"kristijanhusak/vim-dadbod-completion",
|
||||
"kristijanhusak/vim-dadbod-ui",
|
||||
}
|
||||
@@ -16,7 +16,6 @@ return {
|
||||
|
||||
-- GO DEBUG
|
||||
"leoluz/nvim-dap-go",
|
||||
"mfussenegger/nvim-dap-python",
|
||||
},
|
||||
config = function()
|
||||
local dap = require "dap"
|
||||
@@ -56,6 +55,7 @@ return {
|
||||
},
|
||||
}
|
||||
|
||||
-- the very common keybind `<leader>db` overlaps with some other keybind
|
||||
vim.keymap.set("n", "<leader>dt", dap.toggle_breakpoint, { desc = "Debug: Toggle Breakpoint" })
|
||||
|
||||
vim.keymap.set("n", "<Space>?", function()
|
||||
@@ -84,6 +84,5 @@ return {
|
||||
end
|
||||
|
||||
require("dap-go").setup()
|
||||
require("dap-python").setup "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ return {
|
||||
local lint = require "lint"
|
||||
|
||||
lint.linters_by_ft = {
|
||||
python = { "ruff", "mypy" },
|
||||
-- python = { "ruff", "mypy" },
|
||||
dockerfile = { "hadolint" },
|
||||
json = { "jsonlint" },
|
||||
markdown = { "vale" },
|
||||
|
||||
@@ -67,9 +67,9 @@ return {
|
||||
"goimports-reviser",
|
||||
"hadolint",
|
||||
"jsonlint",
|
||||
"mypy",
|
||||
-- "mypy",
|
||||
"prettier",
|
||||
"ruff",
|
||||
-- "ruff",
|
||||
"stylua",
|
||||
"vale",
|
||||
})
|
||||
@@ -131,7 +131,7 @@ return {
|
||||
|
||||
-- Execute a code action, usually your cursor needs to be on top of an error
|
||||
-- or a suggestion from your LSP for this to activate.
|
||||
map("<leader>ca", vim.lsp.buf.code_action, "[C]ode [A]ction")
|
||||
map(vim.lsp.buf.code_action, "[C]ode [A]ction", "<leader>ca")
|
||||
|
||||
-- Opens a popup that displays documentation about the word under your cursor
|
||||
-- See `:help K` for why this keymap.
|
||||
|
||||
@@ -22,8 +22,8 @@ return {
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
statusline.active = function()
|
||||
local mode, mode_hl = statusline.section_mode { trunc_width = 120 }
|
||||
local git = statusline.section_git {}
|
||||
local diagnostics = statusline.section_diagnostics { trunc_width = 75 }
|
||||
local git = statusline.section_git
|
||||
local diagnostics = statusline.section_diagnostics
|
||||
local filename = statusline.section_filename { trunc_width = 140 }
|
||||
-- local fileinfo = statusline.section_fileinfo()
|
||||
local location = statusline.section_location()
|
||||
|
||||
@@ -5,7 +5,7 @@ return {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = { "c", "go", "html", "lua", "python", "typescript", "tsx" },
|
||||
ensure_installed = { "go", "lua" },
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
Reference in New Issue
Block a user