update UI in nvim

This commit is contained in:
Alexander Navarro 2023-10-25 18:25:21 -03:00
parent f53082a62d
commit 125503a2c0
8 changed files with 90 additions and 34 deletions

View file

@ -92,3 +92,24 @@ opt.updatetime = 200 -- Save swap file and trigger CursorHold
opt.wildmode = "longest:full,full" -- Command-line completion mode
opt.winminwidth = 5 -- Minimum window width
opt.wrap = false -- Disable line wrap
vim.filetype.add({
-- Detect and assign filetype based on the extension of the filename
extension = {
mdx = "mdx",
log = "log",
conf = "conf",
env = "dotenv",
},
-- Detect and apply filetypes based on the entire filename
filename = {
[".env"] = "dotenv",
["env"] = "dotenv",
["tsconfig.json"] = "jsonc",
},
-- Detect and apply filetypes based on certain patterns of the filenames
pattern = {
-- INFO: Match filenames like - ".env.example", ".env.local" and so on
["%.env%.[%w_.-]+"] = "dotenv",
},
})

View file

@ -6,7 +6,6 @@ return { -- Change colors.none if not using a transparent background
flavour = "macchiato",
transparent_background = false,
integrations = {
fidget = true,
cmp = true,
},
custom_highlights = function(colors)

View file

@ -0,0 +1,9 @@
return {
"stevearc/dressing.nvim",
opts = {
input = {
-- handle by noice
enabled = false,
},
},
}

View file

@ -6,18 +6,6 @@ return {
{ "williamboman/mason.nvim" },
"williamboman/mason-lspconfig.nvim",
-- Useful status updates for LSP
{
"j-hui/fidget.nvim",
tag = "legacy",
event = "LspAttach",
opts = {
window = {
blend = 0,
},
},
},
-- Additional lua configuration, makes nvim stuff amazing!
{ "folke/neodev.nvim", opts = {} },
},

View file

@ -1,14 +0,0 @@
return {
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {
hint_enable = false,
},
keys = {
{
"<leader>lK",
vim.lsp.buf.signature_help,
desc = "Toggle signature",
},
},
}

View file

@ -4,6 +4,7 @@ return {
ensure_installed = {
"typescript-language-server",
"eslint_d",
"shellcheck",
},
},
}

View file

@ -11,10 +11,16 @@ return {
"rcarriga/nvim-notify",
opts = {
background_colour = "#000000",
}
},
},
},
opts = {
presets = {
bottom_search = true,
-- command_palette = true,
long_message_to_split = true,
inc_rename = true,
},
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
@ -34,12 +40,43 @@ return {
},
view = "mini",
},
{
filter = {
event = "msg_show",
kind = "search_count",
},
opts = { skip = true },
},
},
views = {
cmdline_popup = {
position = {
row = 5,
col = "50%",
},
size = {
width = 60,
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 8,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
inc_rename = true,
},
},
-- stylua: ignore

View file

@ -9,7 +9,22 @@ return {
build = ":TSUpdate",
opts = {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { "c", "cpp", "go", "lua", "python", "rust", "tsx", "typescript", "vimdoc", "vim" },
ensure_installed = {
"bash",
"c",
"cpp",
"go",
"lua",
"markdown",
"markdown_inline",
"python",
"regex",
"rust",
"tsx",
"typescript",
"vim",
"vimdoc",
},
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = true,
highlight = { enable = true },