mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +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;
|
extraConfig = builtins.readFile ./nvim/init.vim;
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
completion-nvim
|
completion-nvim
|
||||||
gruvbox
|
|
||||||
# gruvbox-nvim # TODO: Not working for some reason?
|
# gruvbox-nvim # TODO: Not working for some reason?
|
||||||
# lush-nvim # required by gruvbox-nvim
|
# lush-nvim # required by gruvbox-nvim
|
||||||
|
tokyonight-nvim
|
||||||
lualine-nvim
|
lualine-nvim
|
||||||
nerdtree
|
nerdtree
|
||||||
nvim-lspconfig
|
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
|
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix
|
||||||
let python_highlight_all=1
|
let python_highlight_all=1
|
||||||
|
|
||||||
colorscheme gruvbox
|
|
||||||
|
|
||||||
" Highlight whitespace
|
" Highlight whitespace
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
match ExtraWhitespace /\s\+$/
|
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
|
-- status line
|
||||||
require('lualine').setup()
|
require('lualine').setup {
|
||||||
|
options = {
|
||||||
|
theme = 'tokyonight'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- lsp
|
-- lsp
|
||||||
require'lspconfig'.bashls.setup{}
|
require'lspconfig'.bashls.setup{}
|
||||||
@@ -51,6 +60,7 @@ require("twilight").setup {
|
|||||||
},
|
},
|
||||||
exclude = {}, -- exclude these filetypes
|
exclude = {}, -- exclude these filetypes
|
||||||
}
|
}
|
||||||
|
vim.cmd[[autocmd BufEnter * :TwilightEnable]]
|
||||||
|
|
||||||
vim.api.nvim_exec([[
|
vim.api.nvim_exec([[
|
||||||
set foldmethod=expr
|
set foldmethod=expr
|
||||||
|
Reference in New Issue
Block a user