summaryrefslogtreecommitdiffstats
path: root/lua/plugins
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-23 14:44:58 +0100
committerNanderty <psopka@sopka.ch>2023-03-23 14:44:58 +0100
commitc30652c26aa73b766150dbbd4bd296f2c19c67f2 (patch)
tree53a32e2d1216b4e393466d259371fcc7ad84f0c3 /lua/plugins
parentfd8d232690d7be816b16213083007f432449987d (diff)
downloadneovim-config-c30652c26aa73b766150dbbd4bd296f2c19c67f2.tar.gz
neovim-config-c30652c26aa73b766150dbbd4bd296f2c19c67f2.tar.bz2
neovim-config-c30652c26aa73b766150dbbd4bd296f2c19c67f2.zip
test
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/colorscheme.lua4
-rw-r--r--lua/plugins/interface.lua14
-rw-r--r--lua/plugins/lsp.lua59
3 files changed, 43 insertions, 34 deletions
diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua
index caea7ad..8f805bb 100644
--- a/lua/plugins/colorscheme.lua
+++ b/lua/plugins/colorscheme.lua
@@ -12,6 +12,10 @@ return {
TelescopePromptTitle = { fg = 'base' },
TelescopePromptPrefix = { fg = 'base' },
TelescopePromptCounter = { fg = 'base' },
+ TelescopePreviewNormal = { bg = 'overlay' },
+ TelescopePreviewBorder = { bg = 'overlay' },
+ TelescopeResultsNormal = { bg = 'overlay' },
+ TelescopeResultsBorder = { bg = 'overlay' },
},
})
vim.cmd('colorscheme rose-pine')
diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua
index ddc7b8e..ac78cd0 100644
--- a/lua/plugins/interface.lua
+++ b/lua/plugins/interface.lua
@@ -10,7 +10,7 @@ return {
},
opts = {
options = {
- diagnostics = "nvim_lsp",
+ diagnostics = 'nvim_lsp',
always_show_bufferline = false,
buffer_close_icon = ' ',
},
@@ -44,12 +44,12 @@ return {
},
opts = {
signs = {
- add = { text = " ▎" },
- change = { text = " ▎" },
- delete = { text = " " },
- topdelete = { text = " " },
- changedelete = { text = " ▎" },
- untracked = { text = " ▎" },
+ add = { text = ' │' },
+ change = { text = ' │' },
+ delete = { text = ' │' },
+ topdelete = { text = ' │' },
+ changedelete = { text = ' │' },
+ untracked = { text = ' │' },
},
},
},
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 4a504ec..68da19a 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -1,33 +1,38 @@
return {
- {
- 'neovim/nvim-lspconfig',
- event = {
- 'BufReadPost',
- 'BufNewFile'
- },
- dependencies = {
- 'williamboman/mason.nvim',
- 'williamboman/mason-lspconfig.nvim',
- 'hrsh7th/cmp-nvim-lsp',
- },
- config = function()
- require('mason').setup()
+ {
+ 'neovim/nvim-lspconfig',
+ event = {
+ 'BufReadPost',
+ 'BufNewFile'
+ },
+ dependencies = {
+ 'williamboman/mason.nvim',
+ 'williamboman/mason-lspconfig.nvim',
+ 'hrsh7th/cmp-nvim-lsp',
+ },
+ config = function()
+ require('mason').setup()
- require('mason-lspconfig').setup()
+ require('mason-lspconfig').setup()
- local lsp_capabilities = require('cmp_nvim_lsp').default_capabilities()
- local lsp_attach = function(client, bufnr)
- end
+ local lsp_capabilities = require('cmp_nvim_lsp').default_capabilities()
+ local lsp_attach = function(client, bufnr)
+ end
- local lspconfig = require('lspconfig')
- require('mason-lspconfig').setup_handlers({
- function(server_name)
- lspconfig[server_name].setup({
- on_attach = lsp_attach,
- capabilities = lsp_capabilities,
- })
+ local lspconfig = require('lspconfig')
+ require('mason-lspconfig').setup_handlers({
+ function(server_name)
+ lspconfig[server_name].setup({
+ on_attach = lsp_attach,
+ capabilities = lsp_capabilities,
+ })
+ end,
+ })
+ local signs = { Error = " E", Warn = " W", Hint = " H", Info = " I" }
+ for type, icon in pairs(signs) do
+ local hl = "DiagnosticSign" .. type
+ vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
+ end
end,
- })
- end,
- },
+ },
}