Mercurial > dotfiles
comparison dot_config/nvim/config.lua @ 381:c3ea313def61
Set LSP signcolumn symbols
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 10 Apr 2021 18:37:03 +0200 |
parents | 3b7ebcd563e1 |
children | 41a8b9f51e05 |
comparison
equal
deleted
inserted
replaced
380:3b7ebcd563e1 | 381:c3ea313def61 |
---|---|
318 -- Colorscheme | 318 -- Colorscheme |
319 use { | 319 use { |
320 'zegervdv/one-lush', | 320 'zegervdv/one-lush', |
321 requires = 'rktjmp/lush.nvim', | 321 requires = 'rktjmp/lush.nvim', |
322 config = function() | 322 config = function() |
323 local lush = require('lush') | 323 require 'lush_theme.one-lush' |
324 local spec = require('lush_theme.one-lush') | 324 vim.cmd [[ colorscheme one-lush ]] |
325 lush(spec) | |
326 end, | 325 end, |
327 } | 326 } |
328 | 327 |
329 -- Terminal | 328 -- Terminal |
330 use { | 329 use { |
331 'akinsho/nvim-toggleterm.lua', | 330 'akinsho/nvim-toggleterm.lua', |
332 config = function() | 331 config = function() |
333 require'toggleterm'.setup { | 332 require'toggleterm'.setup { |
334 size = 20, | 333 size = 15, |
335 open_mapping = [[<F12>]], | 334 open_mapping = [[<F12>]], |
336 shade_filetypes = {}, | 335 shade_filetypes = { 'none' }, |
337 shade_terminals = true, | 336 shade_terminals = true, |
338 persist_size = true, | 337 persist_size = true, |
339 direction = 'horizontal', | 338 direction = 'horizontal', |
340 } | 339 } |
341 end, | 340 end, |
345 use { 'Glench/Vim-Jinja2-Syntax' } | 344 use { 'Glench/Vim-Jinja2-Syntax' } |
346 | 345 |
347 end) | 346 end) |
348 | 347 |
349 -- LSP config | 348 -- LSP config |
349 vim.cmd [[ sign define LspDiagnosticsSignError text=▊ texthl=LspDiagnosticsSignError linehl= numhl= ]] | |
350 vim.cmd [[ sign define LspDiagnosticsSignWarning text=▊ texthl=LspDiagnosticsSignWarning linehl= numhl= ]] | |
351 vim.cmd [[ sign define LspDiagnosticsSignInformation text=▊ texthl=LspDiagnosticsSignInformation linehl= numhl= ]] | |
352 vim.cmd [[ sign define LspDiagnosticsSignHint text=▊ texthl=LspDiagnosticsSignHint linehl= numhl= ]] | |
350 | 353 |
351 local lsp = require 'lspconfig' | 354 local lsp = require 'lspconfig' |
352 local lsputil = require 'lspconfig.util' | 355 local lsputil = require 'lspconfig.util' |
353 | 356 |
354 local on_attach = function(client) | 357 local on_attach = function(client) |