added borders to telescope
This commit is contained in:
parent
7fc2db313b
commit
c057d8c0ab
4
.luarc.json
Normal file
4
.luarc.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||||
|
"Lua.completion.autoRequire": false
|
||||||
|
}
|
@ -1,91 +1,102 @@
|
|||||||
local M = {
|
local M = {
|
||||||
event = "BufReadPre"
|
event = "BufReadPre",
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.config()
|
function M.config()
|
||||||
require("lua-dev").setup({
|
require("lua-dev").setup({
|
||||||
library = {
|
library = {
|
||||||
runtime = "~/projects/neovim/runtime/"
|
runtime = "~/projects/neovim/runtime/",
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
require("mason")
|
require("mason")
|
||||||
require("plugins.lsp.diagnostics").setup()
|
require("plugins.lsp.diagnostics").setup()
|
||||||
require("fidget").setup({text = {spinner = "dots"} })
|
require("fidget").setup({ text = { spinner = "dots" } })
|
||||||
local function on_attach(client, bufnr)
|
local function on_attach(client, bufnr)
|
||||||
--require("nvim-navic").attach(client, bufnr)
|
require("nvim-navic").attach(client, bufnr)
|
||||||
require("plugins.lsp.formatting").setup(client, bufnr)
|
require("plugins.lsp.formatting").setup(client, bufnr)
|
||||||
--require("plugins.lsp.keys").setup(client, bufnr)
|
--require("plugins.lsp.keys").setup(client, bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
---@type lspconfig.options
|
---@type lspconfig.options
|
||||||
local servers = {
|
local servers = {
|
||||||
sumneko_lua = {
|
gopls = {},
|
||||||
single_file_support = true,
|
rust_analyzer = {
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
["rust-analyzer"] = {
|
||||||
workspace = {
|
cargo = { allFeatures = true },
|
||||||
checkThirdParty = false,
|
checkOnSave = {
|
||||||
},
|
command = "clippy",
|
||||||
completion = {
|
extraArgs = { "--no-deps" },
|
||||||
workspaceWord = false,
|
},
|
||||||
},
|
},
|
||||||
misc = {
|
},
|
||||||
parameters = {
|
},
|
||||||
"--log-level=trace",
|
sumneko_lua = {
|
||||||
},
|
single_file_support = true,
|
||||||
},
|
settings = {
|
||||||
diagnostics = {
|
Lua = {
|
||||||
groupFileStatus = {
|
workspace = {
|
||||||
["ambiguity"] = "Opened",
|
checkThirdParty = false,
|
||||||
["await"] = "Opened",
|
},
|
||||||
["codestyle"] = "None",
|
completion = {
|
||||||
["duplicate"] = "Opened",
|
workspaceWord = false,
|
||||||
["global"] = "Opened",
|
},
|
||||||
["luadoc"] = "Opened",
|
misc = {
|
||||||
["redefined"] = "Opened",
|
parameters = {
|
||||||
["strict"] = "Opened",
|
"--log-level=trace",
|
||||||
["strong"] = "Opened",
|
},
|
||||||
["type-check"] = "Opened",
|
},
|
||||||
["unbalanced"] = "Opened",
|
diagnostics = {
|
||||||
["unused"] = "Opened",
|
groupFileStatus = {
|
||||||
},
|
["ambiguity"] = "Opened",
|
||||||
unusedLocalExclude = { "_*" },
|
["await"] = "Opened",
|
||||||
},
|
["codestyle"] = "None",
|
||||||
format = {
|
["duplicate"] = "Opened",
|
||||||
enable = false,
|
["global"] = "Opened",
|
||||||
defaultConfig = {
|
["luadoc"] = "Opened",
|
||||||
indent_style = "space",
|
["redefined"] = "Opened",
|
||||||
indent_size = "2",
|
["strict"] = "Opened",
|
||||||
continuation_indent_size = "2",
|
["strong"] = "Opened",
|
||||||
},
|
["type-check"] = "Opened",
|
||||||
},
|
["unbalanced"] = "Opened",
|
||||||
},
|
["unused"] = "Opened",
|
||||||
},
|
},
|
||||||
},
|
unusedLocalExclude = { "_*" },
|
||||||
vimls = {},
|
},
|
||||||
}
|
format = {
|
||||||
local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
enable = false,
|
||||||
capabilities.textDocument.foldingRange = {
|
defaultConfig = {
|
||||||
dymanicRegistration = false,
|
indent_style = "space",
|
||||||
lineFoldingOnly = true,
|
indent_size = "2",
|
||||||
}
|
continuation_indent_size = "2",
|
||||||
|
},
|
||||||
---@type _.lspconfig.options
|
},
|
||||||
local options = {
|
},
|
||||||
on_attach = on_attach,
|
},
|
||||||
capabilities = capabilities,
|
},
|
||||||
flags = {
|
vimls = {},
|
||||||
debounce_text_change = 150,
|
}
|
||||||
}
|
local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
}
|
capabilities.textDocument.foldingRange = {
|
||||||
|
dymanicRegistration = false,
|
||||||
|
lineFoldingOnly = true,
|
||||||
|
}
|
||||||
|
|
||||||
for server, opts in pairs(servers) do
|
---@type _.lspconfig.options
|
||||||
opts = vim.tbl_deep_extend("force", {}, options, opts or {})
|
local options = {
|
||||||
require("lspconfig")[server].setup(opts)
|
on_attach = on_attach,
|
||||||
end
|
capabilities = capabilities,
|
||||||
|
flags = {
|
||||||
|
debounce_text_change = 150,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
require("plugins.null-ls").setup(options)
|
for server, opts in pairs(servers) do
|
||||||
|
opts = vim.tbl_deep_extend("force", {}, options, opts or {})
|
||||||
|
require("lspconfig")[server].setup(opts)
|
||||||
|
end
|
||||||
|
|
||||||
|
require("plugins.null-ls").setup(options)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -5,8 +5,8 @@ return {
|
|||||||
local tokyonight = require("tokyonight")
|
local tokyonight = require("tokyonight")
|
||||||
tokyonight.setup({
|
tokyonight.setup({
|
||||||
style = "moon",
|
style = "moon",
|
||||||
-- transparent = true,
|
--transparent = true,
|
||||||
-- hide_inactive_statusline = false,
|
hide_inactive_statusline = false,
|
||||||
sidebars = {
|
sidebars = {
|
||||||
"qf",
|
"qf",
|
||||||
"vista_kind",
|
"vista_kind",
|
||||||
@ -24,34 +24,34 @@ return {
|
|||||||
hl.CursorLineNr = { fg = c.orange, bold = true }
|
hl.CursorLineNr = { fg = c.orange, bold = true }
|
||||||
|
|
||||||
-- borderless telescope
|
-- borderless telescope
|
||||||
local prompt = "#2d3149"
|
--local prompt = "#2d3149"
|
||||||
hl.TelescopeNormal = {
|
--hl.TelescopeNormal = {
|
||||||
bg = c.bg_dark,
|
-- bg = c.bg_dark,
|
||||||
fg = c.fg_dark,
|
-- fg = c.fg_dark,
|
||||||
}
|
--}
|
||||||
hl.TelescopeBorder = {
|
hl.TelescopeBorder = {
|
||||||
bg = c.bg_dark,
|
bg = c.bg_dark,
|
||||||
fg = c.bg_dark,
|
-- fg = c.bg_dark,
|
||||||
}
|
|
||||||
hl.TelescopePromptNormal = {
|
|
||||||
bg = prompt,
|
|
||||||
}
|
|
||||||
hl.TelescopePromptBorder = {
|
|
||||||
bg = prompt,
|
|
||||||
fg = prompt,
|
|
||||||
}
|
|
||||||
hl.TelescopePromptTitle = {
|
|
||||||
bg = c.fg_gutter,
|
|
||||||
fg = c.orange,
|
|
||||||
}
|
|
||||||
hl.TelescopePreviewTitle = {
|
|
||||||
bg = c.bg_dark,
|
|
||||||
fg = c.bg_dark,
|
|
||||||
}
|
|
||||||
hl.TelescopeResultsTitle = {
|
|
||||||
bg = c.bg_dark,
|
|
||||||
fg = c.bg_dark,
|
|
||||||
}
|
}
|
||||||
|
--hl.TelescopePromptNormal = {
|
||||||
|
-- bg = prompt,
|
||||||
|
--}
|
||||||
|
--hl.TelescopePromptBorder = {
|
||||||
|
-- bg = prompt,
|
||||||
|
-- fg = prompt,
|
||||||
|
--}
|
||||||
|
--hl.TelescopePromptTitle = {
|
||||||
|
-- bg = c.fg_gutter,
|
||||||
|
-- fg = c.orange,
|
||||||
|
--}
|
||||||
|
--hl.TelescopePreviewTitle = {
|
||||||
|
-- bg = c.bg_dark,
|
||||||
|
-- fg = c.bg_dark,
|
||||||
|
--}
|
||||||
|
--hl.TelescopeResultsTitle = {
|
||||||
|
-- bg = c.bg_dark,
|
||||||
|
-- fg = c.bg_dark,
|
||||||
|
--}
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
tokyonight.load()
|
tokyonight.load()
|
||||||
|
Loading…
Reference in New Issue
Block a user