merge
This commit is contained in:
@@ -12,6 +12,7 @@ if [ $(pgrep polybar) ]; then
|
||||
else
|
||||
sleep .5 && polybar mainbar &
|
||||
fi
|
||||
pipewire-launch || pipewire-launch restart &
|
||||
#MONITOR=DP-5 polybar example &
|
||||
~/.fehbg
|
||||
picom &
|
||||
|
||||
@@ -893,16 +893,16 @@ xkb-options=['lv3:ralt_switch']
|
||||
clock-format='12h'
|
||||
color-scheme='prefer-dark'
|
||||
cursor-size=24
|
||||
cursor-theme='Chicago95_Animated_Hourglass_Cursors_HiDPI'
|
||||
cursor-theme='Adwaita'
|
||||
document-font-name='Cantarell 11'
|
||||
enable-animations=true
|
||||
enable-hot-corners=true
|
||||
font-antialiasing='rgba'
|
||||
font-hinting='slight'
|
||||
font-name='Ubuntu 10'
|
||||
gtk-theme='rose-pine-gtk'
|
||||
icon-theme='rose-pine-icons'
|
||||
monospace-font-name='Iosevka Term SS12 14'
|
||||
gtk-theme='Adwaita-dark'
|
||||
icon-theme='Adwaita'
|
||||
show-battery-percentage=true
|
||||
toolbar-style='text'
|
||||
clock-show-seconds=true
|
||||
|
||||
@@ -42,3 +42,27 @@ pin = "46cf4ded12ee974a70bf8457263b67ad7ee0379d"
|
||||
|
||||
[language.typst.queries]
|
||||
path = "queries/typst"
|
||||
|
||||
# swift
|
||||
[language.swift.grammar.source.git]
|
||||
url = "https://github.com/alex-pinkus/tree-sitter-swift"
|
||||
pin = "57c1c6d6ffa1c44b330182d41717e6fe37430704"
|
||||
|
||||
[language.swift.grammar]
|
||||
path = "src"
|
||||
compile = "cc"
|
||||
compile_args = ["-c", "-fpic", "../scanner.c", "-I", ".."]
|
||||
compile_flags = ["-O3"]
|
||||
link = "cc"
|
||||
link_args = ["-shared", "-fpic", "scanner.o", "-o", "swift.so"]
|
||||
link_flags = ["-O3"]
|
||||
|
||||
[language.swift.queries.source.git]
|
||||
url = "https://github.com/helix-editor/helix"
|
||||
pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
|
||||
|
||||
# url = "https://github.com/alex-pinkus/tree-sitter-swift"
|
||||
# pin = "57c1c6d6ffa1c44b330182d41717e6fe37430704"
|
||||
|
||||
[language.swift.queries]
|
||||
path = "runtime/queries/swift"
|
||||
|
||||
@@ -51,7 +51,6 @@ set-option global luar_interpreter luajit
|
||||
#eval %sh{ kak-tree-sitter -dks --with-text-objects --session $kak_session }
|
||||
#eval %sh{ kak-tree-sitter -dks --with-highlighting --session $kak_session }
|
||||
eval %sh{ kak-tree-sitter -dksvvv --init $kak_session }
|
||||
|
||||
# evaluate-commands %sh{
|
||||
# echo "colorscheme base16-$BASE16_THEME"
|
||||
# }
|
||||
@@ -227,6 +226,12 @@ face global InfoDiagnosticHint Information
|
||||
face global InfoDiagnosticInformation Information
|
||||
face global InfoDiagnosticWarning Information
|
||||
|
||||
hook -group lsp-filetype-swift global BufSetOption filetype=swift %{
|
||||
set-option buffer lsp_servers %{
|
||||
[sourcekit-lsp]
|
||||
root_globs = [".git", ".hg"]
|
||||
}
|
||||
}
|
||||
set-option global lsp_config %{
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ lsp_config.hls.setup{}
|
||||
|
||||
lsp_config.clojure_lsp.setup{}
|
||||
|
||||
lsp_config.sourcekit.setup{}
|
||||
|
||||
local cmp = require("cmp")
|
||||
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||
local cmp_mappings = lsp.defaults.cmp_mappings({
|
||||
|
||||
@@ -7,6 +7,32 @@ return require('packer').startup(function(use)
|
||||
-- Packer can manage itself
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use {
|
||||
'jake-stewart/multicursor.nvim',
|
||||
config = function()
|
||||
local mc = require'multicursor-nvim'
|
||||
mc.setup{}
|
||||
local set = vim.keymap.set
|
||||
set("n", "<leader>s", mc.searchAllAddCursors)
|
||||
mc.addKeymapLayer(function(layerSet)
|
||||
-- Select a different cursor as the main one.
|
||||
layerSet({"n", "x"}, "<left>", mc.prevCursor)
|
||||
layerSet({"n", "x"}, "<right>", mc.nextCursor)
|
||||
|
||||
-- Delete the main cursor.
|
||||
layerSet({"n", "x"}, "<leader>x", mc.deleteCursor)
|
||||
|
||||
-- Enable and clear cursors using escape.
|
||||
layerSet("n", "<esc>", function()
|
||||
if not mc.cursorsEnabled() then
|
||||
mc.enableCursors()
|
||||
else
|
||||
mc.clearCursors()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end
|
||||
}
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
branch = '0.1.x',
|
||||
|
||||
@@ -53,7 +53,7 @@ vim.keymap.set("n", "<C-->", function()
|
||||
ChangeScaleFactor(1 / 1.25)
|
||||
end)
|
||||
|
||||
vim.opt.guifont = { "Fairfax", ":h12" }
|
||||
vim.opt.guifont = { "Iosevka Term SS12", ":h12" }
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.g.netrw_keepdir = 0
|
||||
|
||||
Reference in New Issue
Block a user