added borders to telescope

This commit is contained in:
Kasper Juul Hermansen 2022-10-10 17:24:57 +02:00
parent 7fc2db313b
commit c057d8c0ab
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 122 additions and 107 deletions

4
.luarc.json Normal file
View File

@ -0,0 +1,4 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.completion.autoRequire": false
}

View File

@ -1,24 +1,36 @@
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 = {
gopls = {},
rust_analyzer = {
settings = {
["rust-analyzer"] = {
cargo = { allFeatures = true },
checkOnSave = {
command = "clippy",
extraArgs = { "--no-deps" },
},
},
},
},
sumneko_lua = { sumneko_lua = {
single_file_support = true, single_file_support = true,
settings = { settings = {
@ -76,7 +88,7 @@ function M.config()
capabilities = capabilities, capabilities = capabilities,
flags = { flags = {
debounce_text_change = 150, debounce_text_change = 150,
} },
} }
for server, opts in pairs(servers) do for server, opts in pairs(servers) do
@ -85,7 +97,6 @@ function M.config()
end end
require("plugins.null-ls").setup(options) require("plugins.null-ls").setup(options)
end end
return M return M

View File

@ -6,7 +6,7 @@ return {
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()