mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
Fix twilight-nvim by using tokyonight theme which uses treesitter
This commit is contained in:
@@ -301,9 +301,9 @@ in
|
||||
extraConfig = builtins.readFile ./nvim/init.vim;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
completion-nvim
|
||||
gruvbox
|
||||
# gruvbox-nvim # TODO: Not working for some reason?
|
||||
# lush-nvim # required by gruvbox-nvim
|
||||
tokyonight-nvim
|
||||
lualine-nvim
|
||||
nerdtree
|
||||
nvim-lspconfig
|
||||
|
@@ -57,8 +57,6 @@ au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix
|
||||
let python_highlight_all=1
|
||||
|
||||
colorscheme gruvbox
|
||||
|
||||
" Highlight whitespace
|
||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||
match ExtraWhitespace /\s\+$/
|
||||
|
@@ -1,5 +1,14 @@
|
||||
-- colours
|
||||
vim.cmd[[colorscheme tokyonight]]
|
||||
vim.g.tokyonight_style = "night"
|
||||
vim.g.tokyonight_italic_functions = true
|
||||
|
||||
-- status line
|
||||
require('lualine').setup()
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'tokyonight'
|
||||
}
|
||||
}
|
||||
|
||||
-- lsp
|
||||
require'lspconfig'.bashls.setup{}
|
||||
@@ -51,6 +60,7 @@ require("twilight").setup {
|
||||
},
|
||||
exclude = {}, -- exclude these filetypes
|
||||
}
|
||||
vim.cmd[[autocmd BufEnter * :TwilightEnable]]
|
||||
|
||||
vim.api.nvim_exec([[
|
||||
set foldmethod=expr
|
||||
|
Reference in New Issue
Block a user