update UI in nvim
This commit is contained in:
parent
f53082a62d
commit
125503a2c0
8 changed files with 90 additions and 34 deletions
|
|
@ -92,3 +92,24 @@ opt.updatetime = 200 -- Save swap file and trigger CursorHold
|
||||||
opt.wildmode = "longest:full,full" -- Command-line completion mode
|
opt.wildmode = "longest:full,full" -- Command-line completion mode
|
||||||
opt.winminwidth = 5 -- Minimum window width
|
opt.winminwidth = 5 -- Minimum window width
|
||||||
opt.wrap = false -- Disable line wrap
|
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",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ return { -- Change colors.none if not using a transparent background
|
||||||
flavour = "macchiato",
|
flavour = "macchiato",
|
||||||
transparent_background = false,
|
transparent_background = false,
|
||||||
integrations = {
|
integrations = {
|
||||||
fidget = true,
|
|
||||||
cmp = true,
|
cmp = true,
|
||||||
},
|
},
|
||||||
custom_highlights = function(colors)
|
custom_highlights = function(colors)
|
||||||
|
|
|
||||||
9
config/nvim/lua/aleidk/plugins/dressing.lua
Normal file
9
config/nvim/lua/aleidk/plugins/dressing.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
opts = {
|
||||||
|
input = {
|
||||||
|
-- handle by noice
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -6,18 +6,6 @@ return {
|
||||||
{ "williamboman/mason.nvim" },
|
{ "williamboman/mason.nvim" },
|
||||||
"williamboman/mason-lspconfig.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!
|
-- Additional lua configuration, makes nvim stuff amazing!
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -4,6 +4,7 @@ return {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"typescript-language-server",
|
"typescript-language-server",
|
||||||
"eslint_d",
|
"eslint_d",
|
||||||
|
"shellcheck",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,16 @@ return {
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
opts = {
|
opts = {
|
||||||
background_colour = "#000000",
|
background_colour = "#000000",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
presets = {
|
||||||
|
bottom_search = true,
|
||||||
|
-- command_palette = true,
|
||||||
|
long_message_to_split = true,
|
||||||
|
inc_rename = true,
|
||||||
|
},
|
||||||
lsp = {
|
lsp = {
|
||||||
override = {
|
override = {
|
||||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||||
|
|
@ -34,12 +40,43 @@ return {
|
||||||
},
|
},
|
||||||
view = "mini",
|
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
|
-- stylua: ignore
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,22 @@ return {
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
opts = {
|
opts = {
|
||||||
-- 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" },
|
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!)
|
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue