Compare commits
4 Commits
7603f0de8e
...
628475c242
Author | SHA1 | Date | |
---|---|---|---|
628475c242 | |||
25e615bee9 | |||
7eee1b668c | |||
9ab155e3cf |
@ -11,10 +11,10 @@ endif
|
|||||||
|
|
||||||
highlight Title gui=bold
|
highlight Title gui=bold
|
||||||
highlight Special gui=bold
|
highlight Special gui=bold
|
||||||
highlight SpellBad guibg=Normal guifg=Normal gui=undercurl guisp=red
|
highlight SpellBad guibg=Normal guifg=Normal gui=undercurl guisp=red ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl
|
||||||
highlight SpellCap guibg=Normal guifg=Normal gui=undercurl guisp=blue
|
highlight SpellCap guibg=Normal guifg=Normal gui=undercurl guisp=blue ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl
|
||||||
highlight SpellLocal guibg=Normal guifg=Normal gui=undercurl guisp=pink
|
highlight SpellLocal guibg=Normal guifg=Normal gui=undercurl guisp=pink ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl
|
||||||
highlight SpellRare guibg=Normal guifg=Normal gui=undercurl guisp=aqua
|
highlight SpellRare guibg=Normal guifg=Normal gui=undercurl guisp=aqua ctermfg=NONE ctermbg=NONE term=underline cterm=undercurl
|
||||||
highlight Keyword gui=bold
|
highlight Keyword gui=bold
|
||||||
highlight Comment gui=italic
|
highlight Comment gui=italic
|
||||||
highlight Constant guifg=#999999
|
highlight Constant guifg=#999999
|
||||||
|
@ -4,19 +4,14 @@ source ~/.vimrc
|
|||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
" Plug 'ellisonleao/gruvbox.nvim'
|
" Plug 'ellisonleao/gruvbox.nvim'
|
||||||
" Plug 'folke/tokyonight.nvim'
|
Plug 'folke/tokyonight.nvim'
|
||||||
" Plug 'nvim-lua/plenary.nvim'
|
" Plug 'nvim-lua/plenary.nvim'
|
||||||
" Plug 'nvim-tree/nvim-web-devicons'
|
" Plug 'nvim-tree/nvim-web-devicons'
|
||||||
" Plug 'MunifTanjim/nui.nvim'
|
" Plug 'MunifTanjim/nui.nvim'
|
||||||
" Plug 'nvim-neo-tree/neo-tree.nvim', { 'branch': 'v3.x' }
|
" Plug 'nvim-neo-tree/neo-tree.nvim', { 'branch': 'v3.x' }
|
||||||
Plug 'lewis6991/gitsigns.nvim' " OPTIONAL: for git status
|
Plug 'lewis6991/gitsigns.nvim' " OPTIONAL: for git status
|
||||||
" Plug 'nvim-tree/nvim-web-devicons' " OPTIONAL: for file icons
|
" Plug 'nvim-tree/nvim-web-devicons' " OPTIONAL: for file icons
|
||||||
" Plug 'freddiehaddad/feline.nvim'
|
|
||||||
" Plug 'neovim/nvim-lspconfig'
|
" Plug 'neovim/nvim-lspconfig'
|
||||||
" main one
|
|
||||||
" Plug 'ms-jpq/coq_nvim', {'branch': 'coq'}
|
|
||||||
" 9000+ Snippets
|
|
||||||
" Plug 'ms-jpq/coq.artifacts', {'branch': 'artifacts'}
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
Plug 'xiyaowong/transparent.nvim'
|
Plug 'xiyaowong/transparent.nvim'
|
||||||
" Plug 'justinhj/battery.nvim'
|
" Plug 'justinhj/battery.nvim'
|
||||||
@ -30,6 +25,7 @@ if exists("g:neovide")
|
|||||||
set guifont=JetBrains_Mono:h13:cANSI:qDRAFT
|
set guifont=JetBrains_Mono:h13:cANSI:qDRAFT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set termguicolors
|
||||||
colo gruv
|
colo gruv
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
@ -25,8 +25,8 @@ vim.diagnostic.config({
|
|||||||
})
|
})
|
||||||
--vim.api.nvim_set_hl(0,"DiagnosticUnderlineWarn",{undercurl=true,sp='DiagnosticWarn'})
|
--vim.api.nvim_set_hl(0,"DiagnosticUnderlineWarn",{undercurl=true,sp='DiagnosticWarn'})
|
||||||
--For Alacritty:
|
--For Alacritty:
|
||||||
vim.api.nvim_create_autocmd("ExitPre", {
|
-- vim.api.nvim_create_autocmd("ExitPre", {
|
||||||
group = vim.api.nvim_create_augroup("Exit", { clear = true }),
|
-- group = vim.api.nvim_create_augroup("Exit", { clear = true }),
|
||||||
command = "set guicursor=a:ver90-blinkwait250-blinkoff250-blinkon250",
|
-- command = "set guicursor=a:ver90-blinkwait250-blinkoff250-blinkon250",
|
||||||
desc = "Set cursor back to beam when leaving Neovim."
|
-- desc = "Set cursor back to beam when leaving Neovim."
|
||||||
})
|
-- })
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
local util = require("lspconfig.util")
|
vim.lsp.config.matlab_ls =
|
||||||
require('lspconfig').matlab_ls.setup(
|
|
||||||
{
|
{
|
||||||
cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" },
|
cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" },
|
||||||
root_dir = util.root_pattern('mw_anchor'),
|
root_markers = { 'mw_anchor' },
|
||||||
|
filetypes = { 'matlab' },
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
settings = {
|
settings = {
|
||||||
MATLAB = {
|
MATLAB = {
|
||||||
@ -13,4 +13,5 @@ require('lspconfig').matlab_ls.setup(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
vim.lsp.enable({'matlab_ls'})
|
||||||
|
@ -2,6 +2,7 @@ local builtin = require("statuscol.builtin")
|
|||||||
require('statuscol').setup({
|
require('statuscol').setup({
|
||||||
relculright = true,
|
relculright = true,
|
||||||
ft_ignore = { 'neo-tree' },
|
ft_ignore = { 'neo-tree' },
|
||||||
|
bt_ignore = { 'terminal' },
|
||||||
segments = {
|
segments = {
|
||||||
{
|
{
|
||||||
sign = { namespace={'diag*'} },
|
sign = { namespace={'diag*'} },
|
||||||
|
26
vim/.vimrc
26
vim/.vimrc
@ -6,7 +6,7 @@ syntax on
|
|||||||
set cursorline
|
set cursorline
|
||||||
set cursorcolumn
|
set cursorcolumn
|
||||||
set nospell
|
set nospell
|
||||||
set autochdir
|
"set autochdir
|
||||||
|
|
||||||
" disable wrapping
|
" disable wrapping
|
||||||
set nowrap
|
set nowrap
|
||||||
@ -16,9 +16,9 @@ set number
|
|||||||
set relativenumber
|
set relativenumber
|
||||||
|
|
||||||
" colours
|
" colours
|
||||||
set termguicolors
|
"set termguicolors
|
||||||
set bg=dark
|
set bg=dark
|
||||||
colo quiet
|
colo default
|
||||||
|
|
||||||
""" MARKDOWN
|
""" MARKDOWN
|
||||||
" have j and k navigate visual lines rather than logical ones
|
" have j and k navigate visual lines rather than logical ones
|
||||||
@ -33,6 +33,15 @@ autocmd FileType markdown
|
|||||||
\setlocal spell|
|
\setlocal spell|
|
||||||
\setlocal spelllang=en_gb|
|
\setlocal spelllang=en_gb|
|
||||||
|
|
||||||
|
autocmd FileType typst
|
||||||
|
\nmap <buffer> j gj|
|
||||||
|
\nmap <buffer> k gk|
|
||||||
|
\setlocal wrap|
|
||||||
|
\setlocal linebreak|
|
||||||
|
\setlocal nolist|
|
||||||
|
\setlocal spell|
|
||||||
|
\setlocal spelllang=en_gb|
|
||||||
|
|
||||||
" use H and L for beginning/end of line
|
" use H and L for beginning/end of line
|
||||||
map H ^
|
map H ^
|
||||||
map L $
|
map L $
|
||||||
@ -41,3 +50,14 @@ set mouse=nv
|
|||||||
|
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
|
||||||
|
command! Q :q
|
||||||
|
command! W :w
|
||||||
|
command! Qa :qa
|
||||||
|
command! Wq :wq
|
||||||
|
|
||||||
|
noremap <C-C> "+y
|
||||||
|
" noremap <C-V> "+p
|
||||||
|
cnoremap <C-V> <C-r>+
|
||||||
|
imap <C-V> <C-r>+
|
||||||
|
inoremap jj <ESC>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user